Skip to content

Commit 70f5433

Browse files
committed
Fix NULL test on macOS and Windows
1 parent bf279d3 commit 70f5433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_capi/test_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ def test_pyobject_dump(self):
297297
# test NULL object
298298
output = self.pyobject_dump(NULL)
299299
hex_regex = r'(0x)?[0-9a-fA-F]+'
300-
self.assertEqual(output,
301-
'<object at (nil) is freed>')
300+
self.assertRegex(output,
301+
r'<object at (\(nil\)|0x0|0+) is freed>')
302302

303303

304304
if __name__ == "__main__":

0 commit comments

Comments
 (0)