]> granicus.if.org Git - python/commitdiff
Get test to work under regrtest when running whole suite
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 Apr 2003 23:04:22 +0000 (23:04 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 17 Apr 2003 23:04:22 +0000 (23:04 +0000)
Lib/test/test_shlex.py

index f8ef88c9420d4646057a341de5bb253fd35106c3..ed0ab47b1819ca0fcf3f6116bf679bf4ea77d6a3 100644 (file)
@@ -3,6 +3,8 @@ import unittest
 import os, sys
 import shlex
 
+from test import test_support
+
 try:
     from cStringIO import StringIO
 except ImportError:
@@ -187,5 +189,8 @@ if not getattr(shlex, "split", None):
         if methname.startswith("test") and methname != "testCompat":
             delattr(ShlexTest, methname)
 
+def test_main():
+    test_support.run_unittest(ShlexTest)
+
 if __name__ == "__main__":
-    unittest.main()
+    test_main()