@@ -16,7 +16,8 @@ def test_simple():
16
16
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
17
17
# print(s)
18
18
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)'
20
21
) == s
21
22
22
23
@@ -59,7 +60,8 @@ def test_newline():
59
60
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
60
61
# print(s)
61
62
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)'
63
65
) == s
64
66
65
67
@@ -70,7 +72,8 @@ def test_trailing_bracket():
70
72
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
71
73
# print(s)
72
74
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)'
74
77
) == s
75
78
76
79
@@ -83,7 +86,8 @@ def test_multiline():
83
86
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
84
87
# print(s)
85
88
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)'
87
91
) == s
88
92
89
93
@@ -94,7 +98,8 @@ def test_multiline_trailing_bracket():
94
98
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
95
99
# print(s)
96
100
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)'
98
103
) == s
99
104
100
105
@@ -139,7 +144,7 @@ def test_multiple_trailing_lines():
139
144
)
140
145
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
141
146
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)'
143
148
) == s
144
149
145
150
@@ -165,7 +170,7 @@ def test_syntax_warning():
165
170
assert '-1\n "' in str (warning .message )
166
171
s = re .sub (':\d{2,}' , ':<line no>' , str (v ))
167
172
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)'
169
174
) == s
170
175
171
176
@@ -184,5 +189,5 @@ def test_no_syntax_warning():
184
189
)
185
190
)
186
191
)
187
- assert 'test_no_syntax_warning: 1 (int)' in str (v )
192
+ assert 'test_no_syntax_warning\n 1 (int)' in str (v )
188
193
assert len (warning_checker ) == 0
0 commit comments