[Python-checkins] python/dist/src/Lib/test test_shlex.py,1.1,1.2
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Thu, 17 Apr 2003 16:04:26 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7229/Lib/test
Modified Files:
test_shlex.py
Log Message:
Get test to work under regrtest when running whole suite
Index: test_shlex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_shlex.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_shlex.py 17 Apr 2003 21:31:32 -0000 1.1
--- test_shlex.py 17 Apr 2003 23:04:22 -0000 1.2
***************
*** 4,7 ****
--- 4,9 ----
import shlex
+ from test import test_support
+
try:
from cStringIO import StringIO
***************
*** 188,191 ****
delattr(ShlexTest, methname)
if __name__ == "__main__":
! unittest.main()
--- 190,196 ----
delattr(ShlexTest, methname)
+ def test_main():
+ test_support.run_unittest(ShlexTest)
+
if __name__ == "__main__":
! test_main()