fix: Fix F841 unused variable in test

This commit is contained in:
Paul Gauthier (aider) 2025-05-11 08:15:19 -07:00
parent 5f24a0013a
commit 6b9045a2a2

View file

@ -952,7 +952,7 @@ class TestMain(TestCase):
# Suppress stderr for this test as argparse prints an error message # Suppress stderr for this test as argparse prints an error message
with patch("sys.stderr", new_callable=StringIO): with patch("sys.stderr", new_callable=StringIO):
with self.assertRaises(SystemExit) as cm: with self.assertRaises(SystemExit) as cm:
result = main( _ = main(
["--edit-format", "not-a-real-format", "--exit", "--yes"], ["--edit-format", "not-a-real-format", "--exit", "--yes"],
input=DummyInput(), input=DummyInput(),
output=DummyOutput(), output=DummyOutput(),