Blob Blame History Raw
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py
index 418481d..c2f8f19 100644
--- a/Lib/test/test_weakref.py
+++ b/Lib/test/test_weakref.py
@@ -601,6 +601,14 @@ class ReferencesTestCase(TestBase):
         del c1, c2, C, D
         gc.collect()
 
+    # In a debug build, this fails with:
+    #   AssertionError: Lists differ: [] != ['C went away']
+    #   Second list contains 1 additional elements.
+    #   First extra element 0:
+    #   C went away
+    #   - []
+    #   + ['C went away']
+    @unittest.skipIf(hasattr(sys, 'getobjects'), 'debug build')
     @test_support.requires_type_collecting
     def test_callback_in_cycle_resurrection(self):
         import gc