diff options
author | steven.bethard <devnull@localhost> | 2009-09-30 17:59:42 +0000 |
---|---|---|
committer | steven.bethard <devnull@localhost> | 2009-09-30 17:59:42 +0000 |
commit | 7cc6c3f3317aebace4fe1e10dc926a9bf595c4f0 (patch) | |
tree | cd722369ca53846c7334cce6fd009d1e6b652441 | |
parent | 422ca3895a20c76e5a51eb170e23fc667b4701d7 (diff) | |
download | argparse-7cc6c3f3317aebace4fe1e10dc926a9bf595c4f0.tar.gz |
Add missing comma in __all__ declaration.
-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() |