Commit be5d7c9b authored by Denis Bilenko's avatar Denis Bilenko

prefer get() over join() to expose exceptions in greenlet, if any

parent a74736c5
...@@ -59,7 +59,7 @@ class TestGreenness(greentest.TestCase): ...@@ -59,7 +59,7 @@ class TestGreenness(greentest.TestCase):
except urllib2.HTTPError: except urllib2.HTTPError:
ex = sys.exc_info()[1] ex = sys.exc_info()[1]
assert ex.code == 501, repr(ex) assert ex.code == 501, repr(ex)
server.join(0.01) server.get(0.01)
self.assertEqual(self.httpd.request_count, 1) self.assertEqual(self.httpd.request_count, 1)
self.httpd.server_close() self.httpd.server_close()
self.httpd = None self.httpd = None
......
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