Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa1ac54

Browse files
committed
Get test to work under regrtest when running whole suite
1 parent 30b6e82 commit aa1ac54

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Lib/test/test_shlex.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import os, sys
44
import shlex
55

6+
from test import test_support
7+
68
try:
79
from cStringIO import StringIO
810
except ImportError:
@@ -187,5 +189,8 @@ def testCompat(self):
187189
if methname.startswith("test") and methname != "testCompat":
188190
delattr(ShlexTest, methname)
189191

192+
def test_main():
193+
test_support.run_unittest(ShlexTest)
194+
190195
if __name__ == "__main__":
191-
unittest.main()
196+
test_main()

0 commit comments

Comments
 (0)