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

Method test_many_brackets

testing/test_assertrewrite.py:1287–1295  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1285 result.stdout.fnmatch_lines(["*E*assert (False == True) == True"])
1286
1287 def test_many_brackets(self, pytester: Pytester) -> None:
1288 pytester.makepyfile(
1289 """
1290 def test_ternary_display():
1291 assert True == ((False == True) == True)
1292 """
1293 )
1294 result = pytester.runpytest()
1295 result.stdout.fnmatch_lines(["*E*assert True == ((False == True) == True)"])
1296
1297
1298class TestIssue2121:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected