diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-04-13 16:44:05 -0500 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-04-13 16:44:05 -0500 |
commit | 8cc6d42d475c53396afaf972f03bee07ee4739bd (patch) | |
tree | ff70de39fc13210d28c609aa90ff93d35a9db359 /Lib/test/test_getopt.py | |
parent | 187d9878e860b66d78bfd4c8d538130c72cc724a (diff) | |
parent | 81833b5e59153c758f894c851ad1ec4e7942c4b5 (diff) | |
download | cpython-8cc6d42d475c53396afaf972f03bee07ee4739bd.tar.gz |
Closes #23730: merge with 3.4
Diffstat (limited to 'Lib/test/test_getopt.py')
-rw-r--r-- | Lib/test/test_getopt.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_getopt.py b/Lib/test/test_getopt.py index fa5701f310..9275dc4c5b 100644 --- a/Lib/test/test_getopt.py +++ b/Lib/test/test_getopt.py @@ -1,7 +1,7 @@ # test_getopt.py # David Goodger <dgoodger@bigfoot.com> 2000-08-19 -from test.support import verbose, run_doctest, run_unittest, EnvironmentVarGuard +from test.support import verbose, run_doctest, EnvironmentVarGuard import unittest import getopt @@ -180,8 +180,5 @@ class GetoptTests(unittest.TestCase): self.assertEqual(longopts, [('--help', 'x')]) self.assertRaises(getopt.GetoptError, getopt.getopt, ['--help='], '', ['help']) -def test_main(): - run_unittest(GetoptTests) - if __name__ == "__main__": - test_main() + unittest.main() |