Commit 735c7899 authored by Jason Madden's avatar Jason Madden

Fix test__server to not assume the class; test__server_pywsgi uses a different class.

parent 5b3fd014
...@@ -323,10 +323,10 @@ class TestDefaultSpawn(TestCase): ...@@ -323,10 +323,10 @@ class TestDefaultSpawn(TestCase):
# PR 501 # PR 501
self.init_server() self.init_server()
self.start_server() self.start_server()
self.assertTrue('<SimpleStreamServer' in repr(self.server)) self.assertTrue('Server' in repr(self.server))
self.server.set_handle(self.server.handle) self.server.set_handle(self.server.handle)
self.assertTrue('handle=<bound method SimpleStreamServer.handle of self>' in repr(self.server), self.assertTrue('handle=<bound method' in repr(self.server) and 'of self>' in repr(self.server),
repr(self.server)) repr(self.server))
self.server.set_handle(self.test_server_repr_when_handle_is_instancemethod) self.server.set_handle(self.test_server_repr_when_handle_is_instancemethod)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment