diff options
author | Domen Kožar <domen@dev.si> | 2015-10-27 17:06:24 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2015-10-27 17:06:24 +0100 |
commit | 612b6b7a8d27553655ecd278b3631216b2cfe68f (patch) | |
tree | 95cbb97fb34525d13ceafed663e691d61756b1b6 /pkgs/development/python-modules/testtools_support_unittest2.patch | |
parent | b49515ce1742923a351eb955ffa817f7cf03821e (diff) | |
download | nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.tar nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.tar.gz nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.tar.bz2 nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.tar.lz nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.tar.xz nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.tar.zst nixpkgs-612b6b7a8d27553655ecd278b3631216b2cfe68f.zip |
fix a bunch of PYthon packages on py3k
Diffstat (limited to 'pkgs/development/python-modules/testtools_support_unittest2.patch')
-rw-r--r-- | pkgs/development/python-modules/testtools_support_unittest2.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/testtools_support_unittest2.patch b/pkgs/development/python-modules/testtools_support_unittest2.patch new file mode 100644 index 00000000000..545e5f01ec0 --- /dev/null +++ b/pkgs/development/python-modules/testtools_support_unittest2.patch @@ -0,0 +1,22 @@ +From e600d12980ccb807ba1ca3fb6a4da1d0b89c02f6 Mon Sep 17 00:00:00 2001 +From: Robert Collins <robertc@robertcollins.net> +Date: Wed, 1 Jul 2015 15:46:28 +1200 +Subject: [PATCH] Fix tests with unittest2 1.1.0 and higher. + +Change-Id: I4613d47852fbf901819f197f6e388ccaa717b53e +--- + testtools/tests/test_run.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/testtools/tests/test_run.py b/testtools/tests/test_run.py +index ead716b..433b6f8 100644 +--- a/testtools/tests/test_run.py ++++ b/testtools/tests/test_run.py +@@ -201,6 +201,7 @@ def test_run_list_failed_import(self): + run.main, ['prog', 'discover', '-l', broken.package.base, '*.py'], out) + self.assertEqual(2, exc.args[0]) + self.assertThat(out.getvalue(), DocTestMatches("""\ ++unittest2.loader._FailedTest.runexample + Failed to import test module: runexample + Traceback (most recent call last): + File ".../loader.py", line ..., in _find_test_path |