@@ -16,7 +16,8 @@ def test_simple():
1616 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
1717 # print(s)
1818 assert (
19- 'tests/test_expr_render.py:<line no> test_simple: len(a) = 3 (int)'
19+ 'tests/test_expr_render.py:<line no> test_simple\n '
20+ ' len(a) = 3 (int)'
2021 ) == s
2122
2223
@@ -59,7 +60,8 @@ def test_newline():
5960 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
6061 # print(s)
6162 assert (
62- 'tests/test_expr_render.py:<line no> test_newline: foobar(1, 2, 3) = 6 (int)'
63+ 'tests/test_expr_render.py:<line no> test_newline\n '
64+ ' foobar(1, 2, 3) = 6 (int)'
6365 ) == s
6466
6567
@@ -70,7 +72,8 @@ def test_trailing_bracket():
7072 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
7173 # print(s)
7274 assert (
73- 'tests/test_expr_render.py:<line no> test_trailing_bracket: foobar(1, 2, 3) = 6 (int)'
75+ 'tests/test_expr_render.py:<line no> test_trailing_bracket\n '
76+ ' foobar(1, 2, 3) = 6 (int)'
7477 ) == s
7578
7679
@@ -83,7 +86,8 @@ def test_multiline():
8386 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
8487 # print(s)
8588 assert (
86- 'tests/test_expr_render.py:<line no> test_multiline: foobar(1, 2, 3) = 6 (int)'
89+ 'tests/test_expr_render.py:<line no> test_multiline\n '
90+ ' foobar(1, 2, 3) = 6 (int)'
8791 ) == s
8892
8993
@@ -94,7 +98,8 @@ def test_multiline_trailing_bracket():
9498 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
9599 # print(s)
96100 assert (
97- 'tests/test_expr_render.py:<line no> test_multiline_trailing_bracket: foobar(1, 2, 3 ) = 6 (int)'
101+ 'tests/test_expr_render.py:<line no> test_multiline_trailing_bracket\n '
102+ ' foobar(1, 2, 3 ) = 6 (int)'
98103 ) == s
99104
100105
@@ -139,7 +144,7 @@ def test_multiple_trailing_lines():
139144 )
140145 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
141146 assert (
142- 'tests/test_expr_render.py:<line no> test_multiple_trailing_lines: foobar( 1, 2, 3 ) = 6 (int)'
147+ 'tests/test_expr_render.py:<line no> test_multiple_trailing_lines\n foobar( 1, 2, 3 ) = 6 (int)'
143148 ) == s
144149
145150
@@ -165,7 +170,7 @@ def test_syntax_warning():
165170 assert '-1\n "' in str (warning .message )
166171 s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
167172 assert (
168- 'tests/test_expr_render.py:<line no> test_syntax_warning: 1 (int)'
173+ 'tests/test_expr_render.py:<line no> test_syntax_warning\n 1 (int)'
169174 ) == s
170175
171176
@@ -184,5 +189,5 @@ def test_no_syntax_warning():
184189 )
185190 )
186191 )
187- assert 'test_no_syntax_warning: 1 (int)' in str (v )
192+ assert 'test_no_syntax_warning\n 1 (int)' in str (v )
188193 assert len (warning_checker ) == 0
0 commit comments