diff options
author | Victor Stinner <vstinner@python.org> | 2025-02-05 11:31:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-05 10:31:59 +0000 |
commit | a25042e6d2b71651e93ff90c361ad763c0368872 (patch) | |
tree | 284561ffe21412b1154ee9ee43f79970bfffbe07 /Lib/test/test_struct.py | |
parent | dc804ffb2f7cfaf60916b36f3d5cac9c00e4f1ea (diff) | |
download | cpython-a25042e6d2b71651e93ff90c361ad763c0368872.tar.gz cpython-a25042e6d2b71651e93ff90c361ad763c0368872.zip |
gh-129354: Use PyErr_FormatUnraisable() function (#129523)
Replace PyErr_WriteUnraisable() with PyErr_FormatUnraisable().
Update tests:
* test_coroutines
* test_exceptions
* test_generators
* test_struct
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r-- | Lib/test/test_struct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 5fee9fbb92a..b99391e482f 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -694,7 +694,7 @@ class StructTest(ComplexesAreIdenticalMixin, unittest.TestCase): rc, stdout, stderr = assert_python_ok("-c", code) self.assertEqual(rc, 0) self.assertEqual(stdout.rstrip(), b"") - self.assertIn(b"Exception ignored in:", stderr) + self.assertIn(b"Exception ignored while calling deallocator", stderr) self.assertIn(b"C.__del__", stderr) def test__struct_reference_cycle_cleaned_up(self): |