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

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