Author: Carl Friedrich Bolz <[email protected]>
Branch: py3.5
Changeset: r88270:ecf5ae8f6cbc
Date: 2016-11-09 16:32 +0100
http://bitbucket.org/pypy/pypy/changeset/ecf5ae8f6cbc/
Log: merge
diff --git a/lib-python/3/test/test_httpservers.py
b/lib-python/3/test/test_httpservers.py
--- a/lib-python/3/test/test_httpservers.py
+++ b/lib-python/3/test/test_httpservers.py
@@ -254,7 +254,8 @@
with support.captured_stderr() as err:
self.con.request('GET', '/')
- self.con.getresponse()
+ with self.con.getresponse():
+ pass
self.assertTrue(
err.getvalue().endswith('"GET / HTTP/1.1" 200 -\n'))
@@ -265,7 +266,8 @@
with support.captured_stderr() as err:
self.con.request('ERROR', '/')
- self.con.getresponse()
+ with self.con.getresponse():
+ pass
lines = err.getvalue().split('\n')
self.assertTrue(lines[0].endswith('code 404, message File not found'))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit