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

Method test_syntax_error_in_module

testing/python/collect.py:72–75  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

70 reprec.assertoutcome(passed=1)
71
72 def test_syntax_error_in_module(self, pytester: Pytester) -> None:
73 modcol = pytester.getmodulecol("this is a syntax error")
74 pytest.raises(modcol.CollectError, modcol.collect)
75 pytest.raises(modcol.CollectError, modcol.collect)
76
77 def test_module_considers_pluginmanager_at_import(self, pytester: Pytester) -> None:
78 modcol = pytester.getmodulecol("pytest_plugins='xasdlkj',")

Callers

nothing calls this directly

Calls 1

getmodulecolMethod · 0.45

Tested by

no test coverage detected