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

Function test_triple_quoted_string_issue113

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

Source from the content-addressed store, hash-verified

1368
1369
1370def test_triple_quoted_string_issue113(pytester: Pytester) -> None:
1371 pytester.makepyfile(
1372 """
1373 def test_hello():
1374 assert "" == '''
1375 '''"""
1376 )
1377 result = pytester.runpytest("--fulltrace")
1378 result.stdout.fnmatch_lines(["*1 failed*"])
1379 result.stdout.no_fnmatch_line("*SyntaxError*")
1380
1381
1382def test_traceback_failure(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

fnmatch_linesMethod · 0.80
no_fnmatch_lineMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected