Pytest –doctest-modules executes scripts
Pytest –doctest-modules executes scripts Question: I have this MRE: . └── tests └── notest.py The notest.py just do a sys.exit(1): When I run pytest –doctest-modules I get this error: ERROR collecting tests/notest.py tests/notest.py:4: in <module> sys.exit(1) E SystemExit: 1 So the –doctest-modules would try to execute my script which is not a test. Is that …