(pytester: Pytester)
| 1237 | |
| 1238 | |
| 1239 | def test_python25_compile_issue257(pytester: Pytester) -> None: |
| 1240 | pytester.makepyfile( |
| 1241 | """ |
| 1242 | def test_rewritten(): |
| 1243 | assert 1 == 2 |
| 1244 | # some comment |
| 1245 | """ |
| 1246 | ) |
| 1247 | result = pytester.runpytest() |
| 1248 | assert result.ret == 1 |
| 1249 | result.stdout.fnmatch_lines( |
| 1250 | """ |
| 1251 | *E*assert 1 == 2* |
| 1252 | *1 failed* |
| 1253 | """ |
| 1254 | ) |
| 1255 | |
| 1256 | |
| 1257 | def test_rewritten(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected