* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/
@ 2019-11-22 10:14 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2019-11-22 10:14 UTC (permalink / raw
To: gentoo-commits
commit: 7ebc38e66336a9c0e415ee16dfc46fade7d92e85
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 22 10:14:13 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 22 10:14:35 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ebc38e6
dev-python/gmpy: Add missing patch
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../gmpy/files/gmpy-2.0.8-test-exit-status.patch | 41 ++++++++++++++++++++++
1 file changed, 41 insertions(+)
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 00000000000..bd5a116d291
--- /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)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/
@ 2019-11-23 14:34 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2019-11-23 14:34 UTC (permalink / raw
To: gentoo-commits
commit: 9495053ec417e9d0a7ce9d7cf7ba67bc3297704e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 14:33:41 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 14:34:38 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9495053e
dev-python/gmpy: Reverse accidentally reversed patch
Closes: https://bugs.gentoo.org/700980
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../gmpy/files/gmpy-2.0.8-test-exit-status.patch | 22 +++++++++++-----------
1 file 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 bd5a116d291..ab4128ff55c 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)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/
@ 2023-01-10 12:59 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2023-01-10 12:59 UTC (permalink / raw
To: gentoo-commits
commit: 17b2fcd90b0fade5b87258c30a5d74cd710475a5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 10 12:56:04 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 10 12:59:32 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17b2fcd9
dev-python/gmpy: Remove unused patch
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch
deleted file mode 100644
index 16705d917c93..000000000000
--- a/dev-python/gmpy/files/gmpy-2.1.0_beta5-test-input.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/test/runtests.py b/test/runtests.py
-index 5e5842d..7d64e52 100644
---- a/test/runtests.py
-+++ b/test/runtests.py
-@@ -81,7 +81,6 @@ if sys.version.startswith('3.1.'):
- print("with Python 3.1. The doctest module in Python 3.2 and later does not")
- print("have this issue.")
- print()
-- input("Press ENTER to continue.. ")
- print()
-
- mpz_doctests = ["test_mpz_create.txt", "test_mpz.txt", "test_mpz_io.txt",
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-10 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-23 14:34 [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/files/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2023-01-10 12:59 Michał Górny
2019-11-22 10:14 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox