diff options
author | Virgil Dupras <vdupras@gentoo.org> | 2018-07-26 08:39:17 -0400 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2018-07-26 08:39:17 -0400 |
commit | 74160be17bb858f0dc6ea2b2564373b8436b7b90 (patch) | |
tree | 29bba7924165d053186b873a80b523ed13d0a46d /dev-python/send2trash/files | |
parent | www-apps/grafana-bin: Bump to v5.2.2 (diff) | |
download | gentoo-74160be17bb858f0dc6ea2b2564373b8436b7b90.tar.gz gentoo-74160be17bb858f0dc6ea2b2564373b8436b7b90.tar.bz2 gentoo-74160be17bb858f0dc6ea2b2564373b8436b7b90.zip |
dev-python/send2trash: bump to 1.5.0
* Take over maintainership (I upstream this)
* EAPI 7
* Enable tests
* Enable py37 and drop py34
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'dev-python/send2trash/files')
-rw-r--r-- | dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch b/dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch new file mode 100644 index 000000000000..3f2a64ca2a21 --- /dev/null +++ b/dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch @@ -0,0 +1,29 @@ +From 74352462f5df2cb5708b96458b81afef3070c800 Mon Sep 17 00:00:00 2001 +From: Virgil Dupras <hsoft@hardcoded.net> +Date: Thu, 26 Jul 2018 08:30:39 -0400 +Subject: [PATCH] Fix broken tests on py2 + +--- + tests/test_plat_other.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/tests/test_plat_other.py b/tests/test_plat_other.py +index b94295d..ae4f391 100644 +--- a/tests/test_plat_other.py ++++ b/tests/test_plat_other.py +@@ -6,7 +6,11 @@ from os import path as op + import send2trash.plat_other + from send2trash.plat_other import send2trash as s2t + from send2trash.compat import PY3 +-from configparser import ConfigParser ++try: ++ from configparser import ConfigParser ++except ImportError: ++ # py2 ++ from ConfigParser import ConfigParser + from tempfile import mkdtemp, NamedTemporaryFile, mktemp + import shutil + import stat +-- +2.16.4 + |