[Python-checkins] Revert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)
Raymond Hettinger
webhook-mailer at python.org
Tue Dec 25 18:59:10 EST 2018
https://github.com/python/cpython/commit/b6af23ebf9d6667fa222e804f045735289b4527f
commit: b6af23ebf9d6667fa222e804f045735289b4527f
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-12-25T15:59:07-08:00
summary:
Revert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)
* Revert part of "bpo-35565: Remove incorrect test and one that wasn't needed for the fix.
files:
M Lib/test/test_wsgiref.py
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py
index 3a953d841b88..737dfed3a51e 100644
--- a/Lib/test/test_wsgiref.py
+++ b/Lib/test/test_wsgiref.py
@@ -193,19 +193,6 @@ def bad_app(environ, start_response):
))
self.assertEqual(err.splitlines()[-2], exc_message)
- @unittest.skipIf(support.python_is_optimized(),
- "Python was compiled with optimizations")
- def test_hop_by_hop_validation_error(self):
- def bad_app(environ, start_response):
- start_response("200 OK", [('Content-Type', 'text/plain'),
- ('Connection', 'close')])
- return ["Hello, world!"]
- out, err = run_amock(bad_app)
- self.assertTrue(out.endswith(
- b"A server error occurred. Please contact the administrator."
- ))
- self.assertRaises(AssertionError)
-
def test_wsgi_input(self):
def bad_app(e,s):
e["wsgi.input"].read()
More information about the Python-checkins
mailing list