def test_no_terminal_plugin(pytester: Pytester) -> None:
    """Smoke test to ensure pytest can execute without the terminal plugin (#9422)."""
    pytester.makepyfile("def test(): assert 1 == 2")
    result = pytester.runpytest("-pno:terminal", "-s")
    assert result.ret == ExitCode.TESTS_FAILED
Smoke test to ensure pytest can execute without the terminal plugin (#9422).
testing/acceptance_test.py