From 490ecccd128c841b7105146babd2db5af9213e18 Mon Sep 17 00:00:00 2001 From: olzhasar Date: Sat, 3 Feb 2024 17:53:56 +0800 Subject: [PATCH] Fix typo --- pytest_watcher/term_utils.py | 2 +- pytest_watcher/watcher.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_watcher/term_utils.py b/pytest_watcher/term_utils.py index bad2445..b32ebbe 100644 --- a/pytest_watcher/term_utils.py +++ b/pytest_watcher/term_utils.py @@ -30,7 +30,7 @@ def wrapper(*args, **kwargs): @posix_only -def enter_cbbreak(): +def enter_cbreak(): tty.setcbreak(sys.stdin.fileno()) diff --git a/pytest_watcher/watcher.py b/pytest_watcher/watcher.py index b7f0564..a94e3af 100644 --- a/pytest_watcher/watcher.py +++ b/pytest_watcher/watcher.py @@ -131,7 +131,7 @@ def main_loop(*, runner: str, runner_args: List[str], delay: float, clear: bool) _invoke_runner(runner, runner_args, clear=clear) finally: - term_utils.enter_cbbreak() + term_utils.enter_cbreak() clear_stdin() print_short_menu(runner_args) @@ -195,7 +195,7 @@ def run(): sys.stdout.write(f"Runner command: {config.runner}\n") sys.stdout.write(f"Waiting for file changes in {config.path.absolute()}\n") - term_utils.enter_cbbreak() + term_utils.enter_cbreak() if config.now: trigger.emit()