mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Try again to fix test_warnings on Windows
Issue #26567: normalize newlines in test_tracemalloc.
This commit is contained in:
parent
cf934a1c9b
commit
74879e4179
1 changed files with 2 additions and 0 deletions
|
@ -788,6 +788,8 @@ class PyWarningsDisplayTests(WarningsDisplayTests, unittest.TestCase):
|
|||
res = assert_python_ok('-Wd', '-X', 'tracemalloc=2', support.TESTFN)
|
||||
|
||||
stderr = res.err.decode('ascii', 'replace')
|
||||
# normalize newlines
|
||||
stderr = '\n'.join(stderr.splitlines())
|
||||
stderr = re.sub('<.*>', '<...>', stderr)
|
||||
expected = textwrap.dedent('''
|
||||
{fname}:5: ResourceWarning: unclosed file <...>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue