Skip to content

Commit

Permalink
better cli option name
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Peters authored and flub committed Feb 3, 2023
1 parent 389a669 commit 198b792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test_pytest_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 198b792

Please sign in to comment.