Commit 926a14b4 authored by Yannick Jadoul's avatar Yannick Jadoul
Browse files

Adapt expected filename in test_warnins.FinalizationTest

branch : py3.7
parent 222ac5de5792
Pipeline #7353 passed with stage
in 4 minutes and 38 seconds
......@@ -1292,9 +1292,7 @@ A()
import gc; gc.collect()
rc, out, err = assert_python_ok("-c", code)
# note: "__main__" filename is not correct, it should be the name
# of the script
self.assertEqual(err.decode(), '__main__:7: UserWarning: test')
self.assertEqual(err.decode(), '-c:7: UserWarning: test')
def test_late_resource_warning(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment