diff options
author | Jesus Cea <jcea@jcea.es> | 2012-02-19 03:20:45 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-02-19 03:20:45 (GMT) |
commit | f5f6af81ac676e31ad11f0b943c4449b62fc1501 (patch) | |
tree | ed596559df9d97335ce788169c4d0d65f65813c2 /Lib | |
parent | 6e250998b6da145bd75f026a7e8add22bce9a95a (diff) | |
download | cpython-f5f6af81ac676e31ad11f0b943c4449b62fc1501.zip cpython-f5f6af81ac676e31ad11f0b943c4449b62fc1501.tar.gz cpython-f5f6af81ac676e31ad11f0b943c4449b62fc1501.tar.bz2 |
Fix Test for issue #13500
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_cmd.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py index 38288bb..8bb4e63 100644 --- a/Lib/test/test_cmd.py +++ b/Lib/test/test_cmd.py @@ -186,7 +186,7 @@ class TestAlternateInput(unittest.TestCase): class simplecmd2(simplecmd): def do_EOF(self, args): - print('*** Unknown syntax: EOF', file=self.stdout) + print >>self.stdout, '*** Unknown syntax: EOF' return True @@ -203,8 +203,8 @@ class TestAlternateInput(unittest.TestCase): def test_input_reset_at_EOF(self): - input = io.StringIO("print test\nprint test2") - output = io.StringIO() + input = StringIO.StringIO("print test\nprint test2") + output = StringIO.StringIO() cmd = self.simplecmd2(stdin=input, stdout=output) cmd.use_rawinput = False cmd.cmdloop() @@ -212,8 +212,8 @@ class TestAlternateInput(unittest.TestCase): ("(Cmd) test\n" "(Cmd) test2\n" "(Cmd) *** Unknown syntax: EOF\n")) - input = io.StringIO("print \n\n") - output = io.StringIO() + input = StringIO.StringIO("print \n\n") + output = StringIO.StringIO() cmd.stdin = input cmd.stdout = output cmd.cmdloop() |