summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteven.bethard <devnull@localhost>2009-09-30 17:59:42 +0000
committersteven.bethard <devnull@localhost>2009-09-30 17:59:42 +0000
commit7cc6c3f3317aebace4fe1e10dc926a9bf595c4f0 (patch)
treecd722369ca53846c7334cce6fd009d1e6b652441
parent422ca3895a20c76e5a51eb170e23fc667b4701d7 (diff)
downloadargparse-7cc6c3f3317aebace4fe1e10dc926a9bf595c4f0.tar.gz
Add missing comma in __all__ declaration.
-rw-r--r--argparse.py2
-rw-r--r--test/test_argparse.py11
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()