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

b54164
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py
b54164
index 418481d..c2f8f19 100644
b54164
--- a/Lib/test/test_weakref.py
b54164
+++ b/Lib/test/test_weakref.py
b54164
@@ -601,6 +601,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')
b54164
     @test_support.requires_type_collecting
23b3e9
     def test_callback_in_cycle_resurrection(self):
23b3e9
         import gc