summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shlex.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-04-17 23:04:22 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-04-17 23:04:22 (GMT)
commitaa1ac546b6de3c498daf456a9e65199531c68737 (patch)
tree9df6184c78fe48c8c8a7ab76058d666245f6804a /Lib/test/test_shlex.py
parent30b6e8230b443b82b544d5e1b34bb334710e4aac (diff)
downloadcpython-aa1ac546b6de3c498daf456a9e65199531c68737.zip
cpython-aa1ac546b6de3c498daf456a9e65199531c68737.tar.gz
cpython-aa1ac546b6de3c498daf456a9e65199531c68737.tar.bz2
Get test to work under regrtest when running whole suite
Diffstat (limited to 'Lib/test/test_shlex.py')
-rw-r--r--Lib/test/test_shlex.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_shlex.py b/Lib/test/test_shlex.py
index f8ef88c..ed0ab47 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()