From bb0ae7c0507ec43bfe14c6cfd406a133869ebee1 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Tue, 23 Nov 2021 14:53:39 +0530 Subject: [PATCH] Lint fixes --- tests/integration/test_integration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/test_integration.py b/tests/integration/test_integration.py index f7d4ec1d9a..9df24fa8d1 100644 --- a/tests/integration/test_integration.py +++ b/tests/integration/test_integration.py @@ -26,7 +26,7 @@ # * https://github.com/pytest-dev/pytest/issues/7469#issuecomment-918345196 # * https://github.com/pytest-dev/pytest/issues/3342 @pytest.fixture # type: ignore[misc] -def _proxy_py_subprocess(request: Any) -> Generator[int, None, None]: +def proxy_py_subprocess(request: Any) -> Generator[int, None, None]: """Instantiate proxy.py in a subprocess for testing. NOTE: Doesn't waits for the proxy to startup. @@ -56,21 +56,21 @@ def _proxy_py_subprocess(request: Any) -> Generator[int, None, None]: # * https://github.com/pytest-dev/pytest/issues/3342 @pytest.mark.smoke # type: ignore[misc] @pytest.mark.parametrize( - '_proxy_py_subprocess', + 'proxy_py_subprocess', ( ('--threadless'), ('--threadless --local-executor'), ('--threaded'), ), indirect=True, -) +) # type: ignore[misc] @pytest.mark.xfail( IS_WINDOWS, reason='OSError: [WinError 193] %1 is not a valid Win32 application', raises=OSError, ) # type: ignore[misc] -def test_curl(_proxy_py_subprocess: int) -> None: +def test_curl(proxy_py_subprocess: int) -> None: """An acceptance test with using ``curl`` through proxy.py.""" this_test_module = Path(__file__) shell_script_test = this_test_module.with_suffix('.sh') - check_output([str(shell_script_test), str(_proxy_py_subprocess)]) + check_output([str(shell_script_test), str(proxy_py_subprocess)])