We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0510539 commit 50410d6Copy full SHA for 50410d6
Lib/test/test_gc.py
@@ -1186,9 +1186,9 @@ def __del__(self):
1186
test()
1187
"""
1188
_, stdout, _ = assert_python_ok("-c", code)
1189
- assert b"Type weakref with callback is None as expected" in stdout
1190
- assert b"Type weakref is Class as expected" in stdout
1191
- assert b"Instance weakref is None as expected" in stdout
+ self.assertRegex(stdout, b"Type weakref with callback is None as expected")
+ self.assertRegex(stdout, b"Type weakref is Class as expected")
+ self.assertRegex(stdout, b"Instance weakref is None as expected")
1192
1193
1194
class IncrementalGCTests(unittest.TestCase):
0 commit comments