From: Neal Norwitz Date: Thu, 17 Apr 2003 23:04:22 +0000 (+0000) Subject: Get test to work under regrtest when running whole suite X-Git-Tag: v2.3c1~1139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa1ac546b6de3c498daf456a9e65199531c68737;p=python Get test to work under regrtest when running whole suite --- diff --git a/Lib/test/test_shlex.py b/Lib/test/test_shlex.py index f8ef88c942..ed0ab47b18 100644 --- a/Lib/test/test_shlex.py +++ b/Lib/test/test_shlex.py @@ -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()