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

Method test_syntax_error_module

testing/test_session.py:71–76  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

69 assert "DID NOT RAISE" in out
70
71 def test_syntax_error_module(self, pytester: Pytester) -> None:
72 reprec = pytester.inline_runsource("this is really not python")
73 values = reprec.getfailedcollections()
74 assert len(values) == 1
75 out = str(values[0].longrepr)
76 assert out.find("not python") != -1
77
78 def test_exit_first_problem(self, pytester: Pytester) -> None:
79 reprec = pytester.inline_runsource(

Callers

nothing calls this directly

Calls 2

getfailedcollectionsMethod · 0.80
inline_runsourceMethod · 0.45

Tested by

no test coverage detected