Blame SOURCES/00135-skip-test-within-test_weakref-in-debug-build.patch

23b3e9
diff -up Python-2.7.2/Lib/test/test_weakref.py.skip-test-within-test_weakref-in-debug-build Python-2.7.2/Lib/test/test_weakref.py
23b3e9
--- Python-2.7.2/Lib/test/test_weakref.py.skip-test-within-test_weakref-in-debug-build	2011-09-08 17:55:09.675392260 -0400
23b3e9
+++ Python-2.7.2/Lib/test/test_weakref.py	2011-09-08 17:59:08.857375903 -0400
23b3e9
@@ -550,6 +550,14 @@ class ReferencesTestCase(TestBase):
23b3e9
         del c1, c2, C, D
23b3e9
         gc.collect()
23b3e9
 
23b3e9
+    # In a debug build, this fails with:
23b3e9
+    #   AssertionError: Lists differ: [] != ['C went away']
23b3e9
+    #   Second list contains 1 additional elements.
23b3e9
+    #   First extra element 0:
23b3e9
+    #   C went away
23b3e9
+    #   - []
23b3e9
+    #   + ['C went away']
23b3e9
+    @unittest.skipIf(hasattr(sys, 'getobjects'), 'debug build')
23b3e9
     def test_callback_in_cycle_resurrection(self):
23b3e9
         import gc
23b3e9