diff options
-rw-r--r-- | argparse.py | 2 | ||||
-rw-r--r-- | test/test_argparse.py | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/argparse.py b/argparse.py index 4ff6f88..2ba966c 100644 --- a/argparse.py +++ b/argparse.py @@ -84,7 +84,7 @@ __all__ = [ 'FileType', 'HelpFormatter', 'RawDescriptionHelpFormatter', - 'RawTextHelpFormatter' + 'RawTextHelpFormatter', 'ArgumentDefaultsHelpFormatter', ] diff --git a/test/test_argparse.py b/test/test_argparse.py index f58d78f..8860592 100644 --- a/test/test_argparse.py +++ b/test/test_argparse.py @@ -3962,5 +3962,16 @@ class TestParseKnownArgs(TestCase): self.failUnlessEqual(NS(v=3, spam=True, badger="B"), args) self.failUnlessEqual(["C", "--foo", "4"], extras) +# ============================ +# from argparse import * tests +# ============================ + +class TestImportStar(TestCase): + + def test(self): + for name in argparse.__all__: + self.failUnless(hasattr(argparse, name)) + + if __name__ == '__main__': unittest.main() |