Skip to content
Prev Previous commit
simplify test
  • Loading branch information
vstinner committed Nov 18, 2025
commit 376a18640f1db4574f00c27b6fa2d394c27f09ae
4 changes: 1 addition & 3 deletions Lib/test/test_capi/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ def test_pyobject_dump(self):

# test NULL object
output = self.pyobject_dump(NULL)
hex_regex = r'(0x)?[0-9a-fA-F]+'
self.assertRegex(output,
r'<object at (\(nil\)|0x0|0+) is freed>')
self.assertRegex(output, r'<object at .* is freed>')


if __name__ == "__main__":
Expand Down
Loading