diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-23 15:33:41 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-23 15:34:38 +0100 |
commit | 9495053ec417e9d0a7ce9d7cf7ba67bc3297704e (patch) | |
tree | fa12bea87a3a8f7ccc869b2c1fa0246091a15712 /dev-python/gmpy | |
parent | dev-python/lxml: Enable py3.8 (diff) | |
download | gentoo-9495053ec417e9d0a7ce9d7cf7ba67bc3297704e.tar.gz gentoo-9495053ec417e9d0a7ce9d7cf7ba67bc3297704e.tar.bz2 gentoo-9495053ec417e9d0a7ce9d7cf7ba67bc3297704e.zip |
dev-python/gmpy: Reverse accidentally reversed patch
Closes: https://bugs.gentoo.org/700980
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/gmpy')
-rw-r--r-- | dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch b/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch index bd5a116d2917..ab4128ff55ca 100644 --- a/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch +++ b/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch @@ -1,41 +1,41 @@ diff -dupr a/test2/gmpy_test.py b/test2/gmpy_test.py --- a/test2/gmpy_test.py 2019-11-22 09:21:42.313037873 +0100 +++ b/test2/gmpy_test.py 2013-08-20 22:17:52.000000000 +0200 -@@ -34,15 +34,11 @@ writeln(" Caching Values: (Number) +@@ -34,11 +34,15 @@ writeln(" Caching Values: (Number) writeln(" Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1])) pf, pt = 0, 0 --ret = 0 ++ret = 0 for x in test_modules: testit = x._test() failures, tests = testit if tests == 0: continue -- if failures > 0: ret = 1 ++ if failures > 0: ret = 1 writeln("%s %3d tests, %d failures" % (x.__name__, tests-pt, failures-pf)) pf, pt = failures, tests doctest.master.summarize(1) -- --sys.exit(ret) ++ ++sys.exit(ret) diff -dupr a/test3/gmpy_test.py b/test3/gmpy_test.py --- a/test3/gmpy_test.py 2019-11-22 09:21:30.421908749 +0100 +++ b/test3/gmpy_test.py 2013-08-20 22:17:52.000000000 +0200 -@@ -28,12 +28,10 @@ print(" Caching Values: (Number) { +@@ -28,10 +28,12 @@ print(" Caching Values: (Number) { print(" Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1])) pf, pt = 0, 0 --ret = 0 ++ret = 0 for x in test_modules: testit = x._test() failures, tests = testit if tests == 0: continue -- if failures > 0: ret = 1 ++ if failures > 0: ret = 1 print("%s %3d tests, %d failures" % (x.__name__, tests-pt, failures-pf)) pf, pt = failures, tests -@@ -43,5 +41,3 @@ if sys.version_info < (3,1,1): +@@ -41,3 +43,5 @@ if sys.version_info < (3,1,1): print("There is a known bug with Fraction == mpq for versions of Python") print("less than 3.1.1. Please upgrade if you rely on comparisons between") print("Python's Fraction and gmpy2's mpq.") -- --sys.exit(ret) ++ ++sys.exit(ret) |