diff --git a/pytest_timeout.py b/pytest_timeout.py index 6177db0..6d7cb55 100644 --- a/pytest_timeout.py +++ b/pytest_timeout.py @@ -75,7 +75,7 @@ def pytest_addoption(parser): help=METHOD_DESC, ) group.addoption( - "--disable-debugger-detection", + "--timeout-disable-debugger-detection", dest="timeout_disable_debugger_detection", action="store_true", help=DISABLE_DEBUGGER_DETECTION_DESC, diff --git a/test_pytest_timeout.py b/test_pytest_timeout.py index 1db4da7..b3b6dd2 100644 --- a/test_pytest_timeout.py +++ b/test_pytest_timeout.py @@ -520,7 +520,7 @@ def test_foo(): debugging_module=debugging_module, debugging_set_trace=debugging_set_trace ) ) - child = testdir.spawn_pytest(f"{p1} --disable-debugger-detection") + child = testdir.spawn_pytest(f"{p1} --timeout-disable-debugger-detection") child.expect("test_foo") time.sleep(1.2) result = child.read().decode().lower()