From 198b7921138334da11ccfc77e74075099a015613 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Wed, 1 Feb 2023 09:31:08 -0800 Subject: [PATCH] better cli option name --- pytest_timeout.py | 2 +- test_pytest_timeout.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()