File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1010import weakref
1111from collections .abc import MutableMapping
1212from test import mapping_tests , support
13- from test .support import import_helper
13+ from test .support import import_helper , suppress_immortalization
1414
1515
1616py_coll = import_helper .import_fresh_module ('collections' ,
@@ -667,6 +667,7 @@ def test_dict_update(self):
667667 dict .update (od , [('spam' , 1 )])
668668 self .assertNotIn ('NULL' , repr (od ))
669669
670+ @suppress_immortalization ()
670671 def test_reference_loop (self ):
671672 # Issue 25935
672673 OrderedDict = self .OrderedDict
Original file line number Diff line number Diff line change 99import weakref
1010
1111from test import support
12- from test .support import import_helper
12+ from test .support import import_helper , suppress_immortalization
1313from test .support .script_helper import assert_python_ok
1414
1515ISBIGENDIAN = sys .byteorder == "big"
@@ -674,6 +674,7 @@ def __del__(self):
674674 self .assertIn (b"Exception ignored in:" , stderr )
675675 self .assertIn (b"C.__del__" , stderr )
676676
677+ @suppress_immortalization ()
677678 def test__struct_reference_cycle_cleaned_up (self ):
678679 # Regression test for python/cpython#94207.
679680
You can’t perform that action at this time.
0 commit comments