MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_python25_compile_issue257

Function test_python25_compile_issue257

testing/test_assertion.py:1239–1254  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1237
1238
1239def 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
1257def test_rewritten(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected