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

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