[Python-checkins] python/dist/src/Lib/test test_cmd_line.py, 1.1, 1.2

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Sat Oct 8 22:04:40 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7933

Modified Files:
	test_cmd_line.py 
Log Message:
Fix unit test failure -- the output received from Python can be empty,
but verify_valid_flag() wasn't expecting that.  Will backport.


Index: test_cmd_line.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cmd_line.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test_cmd_line.py	3 Oct 2005 00:54:57 -0000	1.1
+++ test_cmd_line.py	8 Oct 2005 20:04:36 -0000	1.2
@@ -17,7 +17,7 @@
 
     def verify_valid_flag(self, cmd_line):
         data = self.start_python(cmd_line)
-        self.assertTrue(data.endswith('\n'))
+        self.assertTrue(data == '' or data.endswith('\n'))
         self.assertTrue('Traceback' not in data)
 
     def test_environment(self):



More information about the Python-checkins mailing list