GeezerVison is showing github.com — gh-118846: Fix PGO tests in free-threaded build · colesbury/cpython@9f8175b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_ordered_dict.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | import weakref |
11 | 11 | from collections.abc import MutableMapping |
12 | 12 | from test import mapping_tests, support |
13 | | -from test.support import import_helper |
| 13 | +from test.support import import_helper, suppress_immortalization |
14 | 14 |
|
15 | 15 |
|
16 | 16 | py_coll = import_helper.import_fresh_module('collections', |
@@ -667,6 +667,7 @@ def test_dict_update(self): |
667 | 667 | dict.update(od, [('spam', 1)]) |
668 | 668 | self.assertNotIn('NULL', repr(od)) |
669 | 669 |
|
| 670 | + @suppress_immortalization() |
670 | 671 | def test_reference_loop(self): |
671 | 672 | # Issue 25935 |
672 | 673 | OrderedDict = self.OrderedDict |
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_struct.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 | import weakref |
10 | 10 |
|
11 | 11 | from test import support |
12 | | -from test.support import import_helper |
| 12 | +from test.support import import_helper, suppress_immortalization |
13 | 13 | from test.support.script_helper import assert_python_ok |
14 | 14 |
|
15 | 15 | ISBIGENDIAN = sys.byteorder == "big" |
@@ -674,6 +674,7 @@ def __del__(self): |
674 | 674 | self.assertIn(b"Exception ignored in:", stderr) |
675 | 675 | self.assertIn(b"C.__del__", stderr) |
676 | 676 |
|
| 677 | + @suppress_immortalization() |
677 | 678 | def test__struct_reference_cycle_cleaned_up(self): |
678 | 679 | # Regression test for python/cpython#94207. |
679 | 680 |
|
|