diff options
| author | amajorek <devnull@localhost> | 2010-03-07 04:28:25 -0500 |
|---|---|---|
| committer | amajorek <devnull@localhost> | 2010-03-07 04:28:25 -0500 |
| commit | fcafbbf322c3c38079bf05ab21db0b7a3139e867 (patch) | |
| tree | 2decb806de435b19f06336d5f0119e039c9c097d /tests/backdoor_test.py | |
| parent | fcd285741b4636238b1cbdbc054f8dd53960f739 (diff) | |
| download | eventlet-fcafbbf322c3c38079bf05ab21db0b7a3139e867.tar.gz | |
py3k - more testcases ported
Diffstat (limited to 'tests/backdoor_test.py')
| -rw-r--r-- | tests/backdoor_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/backdoor_test.py b/tests/backdoor_test.py index 345cbad..27bccc6 100644 --- a/tests/backdoor_test.py +++ b/tests/backdoor_test.py @@ -12,13 +12,13 @@ class BackdoorTest(LimitedTestCase): serv = eventlet.spawn(backdoor.backdoor_server, listener) client = socket.socket() client.connect(('localhost', listener.getsockname()[1])) - f = client.makefile() + f = client.makefile('rw') self.assert_('Python' in f.readline()) f.readline() # build info f.readline() # help info self.assert_('InteractiveConsole' in f.readline()) self.assertEquals('>>> ', f.read(4)) - f.write('print "hi"\n') + f.write('print("hi")\n') f.flush() self.assertEquals('hi\n', f.readline()) self.assertEquals('>>> ', f.read(4)) @@ -31,4 +31,4 @@ class BackdoorTest(LimitedTestCase): if __name__ == '__main__': - main()
\ No newline at end of file + main() |
