diff --git a/.flake8 b/.flake8 index 3eaf87807..9e5761cf2 100644 --- a/.flake8 +++ b/.flake8 @@ -52,7 +52,6 @@ per-file-ignores = tests/test_command.py: IMR241, tests/test_editor.py: IMR241, tests/test_error.py: IMR241, - tests/test_hooks.py: IMR241, tests/test_main.py: IMR241, tests/test_repo_logging.py: IMR241, tests/test_subcmds.py: IMR241, diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 3c05d4fe4..d9b19ae2a 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -14,7 +14,7 @@ """Unittests for the hooks.py module.""" -from io import StringIO +import io from pathlib import Path import sys @@ -82,7 +82,7 @@ def test_post_sync_argument_validation() -> None: ) old_stderr = sys.stderr - sys.stderr = StringIO() + sys.stderr = io.StringIO() try: # Call with missing arg `sync_duration_seconds`