[Python-modules-commits] r31354 - in packages/python-gmpy2/trunk/debian (4 files)
aomighty-guest at users.alioth.debian.org
aomighty-guest at users.alioth.debian.org
Sun Nov 2 01:55:56 UTC 2014
Date: Sunday, November 2, 2014 @ 01:55:55
Author: aomighty-guest
Revision: 31354
Adding patch to fix bogus test failure
Added:
packages/python-gmpy2/trunk/debian/patches/
packages/python-gmpy2/trunk/debian/patches/fix-bogus-test-failures.patch
packages/python-gmpy2/trunk/debian/patches/series
Modified:
packages/python-gmpy2/trunk/debian/changelog
Modified: packages/python-gmpy2/trunk/debian/changelog
===================================================================
--- packages/python-gmpy2/trunk/debian/changelog 2014-11-01 20:29:12 UTC (rev 31353)
+++ packages/python-gmpy2/trunk/debian/changelog 2014-11-02 01:55:55 UTC (rev 31354)
@@ -1,3 +1,10 @@
+python-gmpy2 (2.0.4-2) unstable; urgency=medium
+
+ * Adding in upstream patch for bogus test failures. We can drop the patch at
+ next release. Closes: #767417.
+
+ -- Martin Kelly <martin at martingkelly.com> Sat, 01 Nov 2014 12:26:30 -0700
+
python-gmpy2 (2.0.4-1) unstable; urgency=medium
* New upstream release
Added: packages/python-gmpy2/trunk/debian/patches/fix-bogus-test-failures.patch
===================================================================
--- packages/python-gmpy2/trunk/debian/patches/fix-bogus-test-failures.patch (rev 0)
+++ packages/python-gmpy2/trunk/debian/patches/fix-bogus-test-failures.patch 2014-11-02 01:55:55 UTC (rev 31354)
@@ -0,0 +1,31 @@
+Applying upstream patch from https://code.google.com/p/gmpy/source/detail?r=1014.
+--- a/test/test_mpfr_trig.txt
++++ b/test/test_mpfr_trig.txt
+@@ -305,10 +305,10 @@
+ >>> gmpy2.set_context(gmpy2.context())
+ >>> _cmp(gmpy2.cot(mpfr("0.2")), 1/math.tan(0.2))
+ False
+- >>> gmpy2.cot(mpfr("0.2")).as_integer_ratio()
+- (mpz(173569956714485), mpz(35184372088832))
+- >>> (1/math.tan(0.2)).as_integer_ratio()
+- (5554238614863519, 1125899906842624)
++ >>> gmpy2.cot(mpfr("0.2")).as_integer_ratio() == (mpz(173569956714485), mpz(35184372088832))
++ True
++ >>> (1/math.tan(0.2)).as_integer_ratio() == (5554238614863519, 1125899906842624)
++ True
+ >>> _cmp(gmpy2.cot(gmpy2.const_pi()), 1/math.tan(math.pi))
+ True
+ >>> gmpy2.cot(1)
+--- a/test/test_mpz_io.txt
++++ b/test/test_mpz_io.txt
+@@ -68,8 +68,8 @@
+ mpz(0)
+ >>> mpz(D("1"))
+ mpz(1)
+- >>> mpz(D("1e10"))
+- mpz(10000000000)
++ >>> mpz(D("1e10")) == mpz(10000000000)
++ True
+ >>> mpz(D("nan"))
+ Traceback (most recent call last):
+ File "<stdin>", line 1, in <module>
Added: packages/python-gmpy2/trunk/debian/patches/series
===================================================================
--- packages/python-gmpy2/trunk/debian/patches/series (rev 0)
+++ packages/python-gmpy2/trunk/debian/patches/series 2014-11-02 01:55:55 UTC (rev 31354)
@@ -0,0 +1 @@
+fix-bogus-test-failures.patch
More information about the Python-modules-commits
mailing list