]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't produce output in test_builtin.
authorGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 09:17:22 +0000 (09:17 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 09:17:22 +0000 (09:17 +0000)
 (backport from rev. 51131)

Lib/test/test_builtin.py

index 2d044dc437b9df616ce4049ca6f329e700f7e27d..2389e1be52eab0db9c4f2c2d443a3cbef38fd8aa 100644 (file)
@@ -1039,12 +1039,12 @@ class BuiltinTest(unittest.TestCase):
             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")