def test_pytest_runner(pyi_builder):
 pyi_builder.test_source("\n        import pytest\n        import sys\n        sys.exit(pytest.main(['--help']))\n        ")

def test_pytest_runner ( pyi_builder ) : pyi_builder . test_source ( "\n        import pytest\n        import sys\n        sys.exit(pytest.main(['--help']))\n        " )
check if pytest runner builds correctly .