]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blobdiff - python/patches/00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch
python: Update to 2.7.12.
[people/stevee/ipfire-3.x.git] / python / patches / 00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch
index 38381ef27990f526471891c6198b8fc920f85d56..71e7f6819819756ce72cbcbf6a186d9a0fd5b5e9 100644 (file)
@@ -1,9 +1,11 @@
---- Python-2.7.2/Lib/test/test_sys.py.mark-tests-that-fail-in-rpmbuild 2011-09-08 18:02:31.627362039 -0400
-+++ Python-2.7.2/Lib/test/test_sys.py  2011-09-08 18:15:29.450308851 -0400
-@@ -734,6 +734,11 @@ class SizeofTest(unittest.TestCase):
-         # (PyTypeObject + PyNumberMethods +  PyMappingMethods +
-         #  PySequenceMethods + PyBufferProcs)
-         s = vsize('P2P15Pl4PP9PP11PI') + struct.calcsize('41P 10P 3P 6P')
+diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
+index 0dd4258..d9b3267 100644
+--- a/Lib/test/test_sys.py
++++ b/Lib/test/test_sys.py
+@@ -769,6 +769,11 @@ class SizeofTest(unittest.TestCase):
+                   '10P'                 # PySequenceMethods
+                   '6P'                  # PyBufferProcs
+                   '2P')
 +
 +        # COUNT_ALLOCS adds further fields to the end of a PyTypeObject:
 +        if hasattr(sys, 'getcounts'):