diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 12:49:55 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 12:49:55 (GMT) |
commit | 528bed8e4a8827c2135c843caee2c824d51201c2 (patch) | |
tree | 762b59e967ffb85d4918b0afe50fcecd3aa3b364 /Lib/test/test_httpservers.py | |
parent | 708a5ea9648cab35597879c176a7366fd630c4db (diff) | |
download | cpython-528bed8e4a8827c2135c843caee2c824d51201c2.zip cpython-528bed8e4a8827c2135c843caee2c824d51201c2.tar.gz cpython-528bed8e4a8827c2135c843caee2c824d51201c2.tar.bz2 |
Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r-- | Lib/test/test_httpservers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index d0ebb28..359694a 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -114,7 +114,7 @@ class BaseHTTPRequestHandlerTestCase(unittest.TestCase): def verify_http_server_response(self, response): match = self.HTTPResponseMatch.search(response) - self.assertTrue(match is not None) + self.assertIsNotNone(match) def test_http_1_1(self): result = self.send_typical_request('GET / HTTP/1.1\r\n\r\n') |