]> granicus.if.org Git - python/commitdiff
Revert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Tue, 25 Dec 2018 23:59:07 +0000 (15:59 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Dec 2018 23:59:07 +0000 (15:59 -0800)
* Revert part of "bpo-35565:  Remove incorrect test and one that wasn't needed for the fix.

Lib/test/test_wsgiref.py

index 3a953d841b8846d711069241497472165df104b2..737dfed3a51e574ebb91cf28e1bf0821ffab46d0 100644 (file)
@@ -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()