[Python-checkins] python/dist/src/Lib/test test_cmd_line.py, 1.1.2.2, 1.1.2.3

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


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

Modified Files:
      Tag: release24-maint
	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.  (Backport.)


Index: test_cmd_line.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cmd_line.py,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- test_cmd_line.py	3 Oct 2005 01:03:46 -0000	1.1.2.2
+++ test_cmd_line.py	8 Oct 2005 20:04:55 -0000	1.1.2.3
@@ -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