diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 00:24:26 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 00:24:26 (GMT) |
| commit | 8dc04a4dd1fc0e8c5feaba7308eaf8b8c8df8373 (patch) | |
| tree | 8a4de788c6c22e4d185f43b199735b44607fdf88 /Lib/test/test_wsgiref.py | |
| parent | 8c7fe2d6f98908a597fec05767dc8a032c06dc61 (diff) | |
| download | cpython-8dc04a4dd1fc0e8c5feaba7308eaf8b8c8df8373.zip cpython-8dc04a4dd1fc0e8c5feaba7308eaf8b8c8df8373.tar.gz cpython-8dc04a4dd1fc0e8c5feaba7308eaf8b8c8df8373.tar.bz2 | |
Merged revisions 77310-77311 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77310 | antoine.pitrou | 2010-01-05 01:22:44 +0200 (Tue, 05 Jan 2010) | 4 lines
Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
........
r77311 | antoine.pitrou | 2010-01-05 01:28:16 +0200 (Tue, 05 Jan 2010) | 3 lines
Kill a couple of "<>"
........
Diffstat (limited to 'Lib/test/test_wsgiref.py')
| -rwxr-xr-x | Lib/test/test_wsgiref.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py index 06591ad..1f46a3e 100755 --- a/Lib/test/test_wsgiref.py +++ b/Lib/test/test_wsgiref.py @@ -523,7 +523,8 @@ class HandlerTests(TestCase): "Content-Length: %d\r\n" "\r\n%s" % (h.error_status,len(h.error_body),h.error_body)) - self.failUnless(h.stderr.getvalue().find("AssertionError")<>-1) + self.assertTrue("AssertionError" in h.stderr.getvalue(), + "AssertionError not in stderr") def testErrorAfterOutput(self): MSG = "Some output has been sent" @@ -536,7 +537,8 @@ class HandlerTests(TestCase): self.assertEqual(h.stdout.getvalue(), "Status: 200 OK\r\n" "\r\n"+MSG) - self.failUnless(h.stderr.getvalue().find("AssertionError")<>-1) + self.assertTrue("AssertionError" in h.stderr.getvalue(), + "AssertionError not in stderr") def testHeaderFormats(self): |
