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

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