[Python-checkins] r51132 - python/branches/release24-maint/Lib/test/test_builtin.py

georg.brandl python-checkins at python.org
Sun Aug 6 11:17:23 CEST 2006


Author: georg.brandl
Date: Sun Aug  6 11:17:22 2006
New Revision: 51132

Modified:
   python/branches/release24-maint/Lib/test/test_builtin.py
Log:
Don't produce output in test_builtin.
 (backport from rev. 51131)

Modified: python/branches/release24-maint/Lib/test/test_builtin.py
==============================================================================
--- python/branches/release24-maint/Lib/test/test_builtin.py	(original)
+++ python/branches/release24-maint/Lib/test/test_builtin.py	Sun Aug  6 11:17:22 2006
@@ -1039,12 +1039,12 @@
             self.assertEqual(input('testing\n'), 2)
             self.assertEqual(raw_input(), 'The quick brown fox jumps over the lazy dog.')
             self.assertEqual(raw_input('testing\n'), 'Dear John')
-            
+
             # SF 1535165: don't segfault on closed stdin
             # sys.stdout must be a regular file for triggering
             sys.stdout = savestdout
             sys.stdin.close()
-            self.assertRaises(ValueError, input, 'prompt')
+            self.assertRaises(ValueError, input)
 
             sys.stdout = BitBucket()
             sys.stdin = cStringIO.StringIO("NULL\0")


More information about the Python-checkins mailing list