From 7ebc38e66336a9c0e415ee16dfc46fade7d92e85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 22 Nov 2019 11:14:13 +0100 Subject: [PATCH] dev-python/gmpy: Add missing patch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../files/gmpy-2.0.8-test-exit-status.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch 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 new file mode 100644 index 000000000000..bd5a116d2917 --- /dev/null +++ b/dev-python/gmpy/files/gmpy-2.0.8-test-exit-status.patch @@ -0,0 +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) + writeln(" Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1])) + + pf, pt = 0, 0 +-ret = 0 + for x in test_modules: + testit = x._test() + failures, tests = testit + if tests == 0: continue +- 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) +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) { + print(" Caching Values: (Size, limbs) {0}".format(_g.get_cache()[1])) + + pf, pt = 0, 0 +-ret = 0 + for x in test_modules: + testit = x._test() + failures, tests = testit + if tests == 0: continue +- 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): + 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) -- 2.26.2