]> granicus.if.org Git - python/commitdiff
Don't produce output in test_builtin.
authorGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 09:17:16 +0000 (09:17 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 09:17:16 +0000 (09:17 +0000)
Lib/test/test_builtin.py

index eca284a4c0345b43d5d26e3ba4cc590728b569e7..9d9b1f9937c9e80e2f6db70b26326556443c7fb6 100644 (file)
@@ -1432,12 +1432,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")