summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2019-03-25 18:51:09 -0700
committerPatrick McLean <chutzpah@gentoo.org>2019-03-25 19:32:36 -0700
commitc7a0646691cc170758c473760ae4d53f1f443f90 (patch)
tree11771701d6eebda2a1931a31b18cbb8f63d420aa /dev-python/PyUtilib/files
parentdev-util/gcovr: Take maint, drop py3.4, drop old (diff)
downloadgentoo-c7a0646691cc170758c473760ae4d53f1f443f90.tar.gz
gentoo-c7a0646691cc170758c473760ae4d53f1f443f90.tar.bz2
gentoo-c7a0646691cc170758c473760ae4d53f1f443f90.zip
dev-python/PyUtilib: New package
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python/PyUtilib/files')
-rw-r--r--dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch b/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch
new file mode 100644
index 000000000000..780c586759af
--- /dev/null
+++ b/dev-python/PyUtilib/files/pyutilib-5.6.5-tests.patch
@@ -0,0 +1,35 @@
+diff --git a/pyutilib/dev/entry_point.py b/pyutilib/dev/entry_point.py
+index e571cc7..e0200e9 100644
+--- a/pyutilib/dev/entry_point.py
++++ b/pyutilib/dev/entry_point.py
+@@ -23,7 +23,8 @@ def run_entry_point(package, script, args=[], **kwds):
+ script = str(script)
+ assert type(args) is list
+ cmdLine \
+- = "import pkg_resources,sys; "\
++ = "import pkg_resources,sys,os; "\
++ "pkg_resources.fixup_namespace_packages(os.path.join(os.getcwd(),'build')); "\
+ "sys.argv=%r; "\
+ "sys.exit(pkg_resources.load_entry_point(%r,'console_scripts',%r)())" \
+ % ( [script]+args, package, script )
+diff --git a/pyutilib/enum/tests/test_enum.py b/pyutilib/enum/tests/test_enum.py
+index 52451ef..66313f4 100755
+--- a/pyutilib/enum/tests/test_enum.py
++++ b/pyutilib/enum/tests/test_enum.py
+@@ -11,7 +11,7 @@
+ """ Unit test for ‘enum’ module.
+ """
+
+-import unittest
++import unittest, sys
+
+ import pyutilib.enum.enum as enum
+
+@@ -355,6 +355,7 @@ class Test_EnumValue(unittest.TestCase):
+ for other_value in self.other_values:
+ self.assertNotEqual(test_value, other_value)
+
++ @unittest.skipIf(sys.hexversion > 0x03040000, "can't compare int and tuple on python3")
+ def test_sequence_other_values(self):
+ # An EnumValue should compare sequentially to other values.
+ test_value = enum.EnumValue(self.SimpleEnum, 0, 'test')