Skip to content

Commit 376a186

Browse files
committed
simplify test
1 parent b98c9b2 commit 376a186

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_capi/test_object.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ def test_pyobject_dump(self):
296296

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

303301

304302
if __name__ == "__main__":

0 commit comments

Comments
 (0)