summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-19 09:00:08 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-19 09:00:08 (GMT)
commit74879e41791c9c033597250476d556815921a8e3 (patch)
tree9888ae36e65b9e42e4d26f79a21cc2a3d2f5c344 /Lib
parentcf934a1c9b9fbafbef0bbeb3288f4431bbc5652f (diff)
downloadcpython-74879e41791c9c033597250476d556815921a8e3.zip
cpython-74879e41791c9c033597250476d556815921a8e3.tar.gz
cpython-74879e41791c9c033597250476d556815921a8e3.tar.bz2
Try again to fix test_warnings on Windows
Issue #26567: normalize newlines in test_tracemalloc.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_warnings/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_warnings/__init__.py b/Lib/test/test_warnings/__init__.py
index be80b05..e6f47cd 100644
--- a/Lib/test/test_warnings/__init__.py
+++ b/Lib/test/test_warnings/__init__.py
@@ -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 <...>