mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
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.
This commit is contained in:
parent
5ef4fc241a
commit
b6af23ebf9
1 changed files with 0 additions and 13 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue