[Lsb-messages] /var/www/bzr/lsb/devel/python-test r55: Disable 2 subtests from test_csv.py that fail with 2.7.3+ (bug 3320, upstream change)

Stew Benedict stewb at linux-foundation.org
Wed May 9 18:24:54 UTC 2012


------------------------------------------------------------
revno: 55
committer: Stew Benedict <stewb at linux-foundation.org>
branch nick: python-test
timestamp: Wed 2012-05-09 14:24:54 -0400
message:
  Disable 2 subtests from test_csv.py that fail with 2.7.3+ (bug 3320, upstream change)
added:
  scripts/package/python-test-bug-3320.patch
modified:
  scripts/package/Makefile
  scripts/package/lsb-test-python.spec.sed
-------------- next part --------------
=== modified file 'scripts/package/Makefile'
--- a/scripts/package/Makefile	2012-03-13 18:18:21 +0000
+++ b/scripts/package/Makefile	2012-05-09 18:24:54 +0000
@@ -1,7 +1,7 @@
 # XXX We should play the usual tricks defining stuff here and building
 # XXX a specfile from this info, but not yet: for now keep in sync
 PACKAGE=lsb-test-python
-VERSION=4.1.4
+VERSION=4.1.5
 RELEASE=1
 PVER4=2.4.2
 PVER5=2.5

=== modified file 'scripts/package/lsb-test-python.spec.sed'
--- a/scripts/package/lsb-test-python.spec.sed	2012-03-13 18:18:21 +0000
+++ b/scripts/package/lsb-test-python.spec.sed	2012-05-09 18:24:54 +0000
@@ -31,6 +31,7 @@
 Patch10: python-test-bug-3024.patch
 Patch11: python-test-bug-3115.patch
 Patch12: python-test-bug-3286.patch
+Patch13: python-test-bug-3320.patch
 
 URL: http://www.linuxbase.org/test
 #Prefix: %{_prefix}
@@ -62,6 +63,7 @@
 %patch10 -p2 -b .bug-3024
 %patch11 -p3 -b .bug-3115
 %patch12 -p2 -b .bug-3286
+%patch13 -p2 -b .bug-3320
 popd
 pushd Python-%{pversion4}/Lib
 %patch9 -p2 -b .bug-2952
@@ -254,7 +256,7 @@
 # clean up the patch backup files
 for backup in tet-output system-python new-behavior testcapi \
 	26 bug-2595 26-deprecation bug-2781 bug-2945 bug-2952 \
-	bug-3024 bug-3115 bug-3286;do
+	bug-3024 bug-3115 bug-3286 bug-3320;do
   find . -name "*.$backup" | xargs rm -f
 done
 popd
@@ -289,6 +291,9 @@
 
 #==================================================
 %changelog
+* Wed May 09 2012 Stew Benedict <stewb at linux-foundation.org>
+- disable 2 subtests in test_csv.py (bug 3320, P13)
+
 * Tue Mar 13 2012 Stew Benedict <stewb at linux-foundation.org>
 - add new module test (bug 3458)
 - remove buildrequires on lsbappchk-python (build our own copy in gensrc)

=== added file 'scripts/package/python-test-bug-3320.patch'
--- a/scripts/package/python-test-bug-3320.patch	1970-01-01 00:00:00 +0000
+++ b/scripts/package/python-test-bug-3320.patch	2012-05-09 18:24:54 +0000
@@ -0,0 +1,21 @@
+diff -up ./Lib/test/test_csv.py.bug-3320 ./Lib/test/test_csv.py
+--- ./Lib/test/test_csv.py.bug-3320	2012-05-09 14:05:45.407267289 -0400
++++ ./Lib/test/test_csv.py	2012-05-09 14:08:09.478267350 -0400
+@@ -719,6 +719,8 @@ class TestArrayWrites(unittest.TestCase)
+             os.unlink(name)
+ 
+     def test_double_write(self):
++        # fails with 2.7.3+ - upstream now uses repr instead of str (bug 3320)
++        return
+         import array
+         contents = [(20-i)*0.1 for i in range(20)]
+         a = array.array('d', contents)
+@@ -735,6 +737,8 @@ class TestArrayWrites(unittest.TestCase)
+             os.unlink(name)
+ 
+     def test_float_write(self):
++        # fails with 2.7.3+ - upstream now uses repr instead of str (bug 3320)
++        return
+         import array
+         contents = [(20-i)*0.1 for i in range(20)]
+         a = array.array('f', contents)



More information about the lsb-messages mailing list