main should use argv if args not provided

This commit is contained in:
Paul Gauthier 2023-05-11 20:34:46 -07:00
parent c368e87c9f
commit d44f732d3b
2 changed files with 11 additions and 4 deletions

View file

@ -35,3 +35,4 @@ class TestMain(TestCase):
sys.stdin = dev_null
main(["--yes", "foo.txt"])
sys.stdin = save_stdin
self.assertTrue(os.path.exists("foo.txt"))