summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-12-25 23:59:07 (GMT)
committerGitHub <noreply@github.com>2018-12-25 23:59:07 (GMT)
commitb6af23ebf9d6667fa222e804f045735289b4527f (patch)
tree9df6b61def7615e3ac36bad7f635185894509171 /Lib
parent5ef4fc241aea6759ef3f55b1ef564aebc492a0db (diff)
downloadcpython-b6af23ebf9d6667fa222e804f045735289b4527f.zip
cpython-b6af23ebf9d6667fa222e804f045735289b4527f.tar.gz
cpython-b6af23ebf9d6667fa222e804f045735289b4527f.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_wsgiref.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py
index 3a953d8..737dfed 100644
--- a/Lib/test/test_wsgiref.py
+++ b/Lib/test/test_wsgiref.py
@@ -193,19 +193,6 @@ class IntegrationTests(TestCase):
))
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()