expect the correct platform-dependent linesep

This commit is contained in:
Benjamin Peterson 2014-06-16 23:15:50 -07:00
parent 73b8b1cdb8
commit 314dc126ce

View file

@ -463,7 +463,7 @@ class CGIHTTPServerTestCase(BaseTestCase):
def test_urlquote_decoding_in_cgi_check(self):
res = self.request('/cgi-bin%2ffile1.py')
self.assertEqual((b'Hello World\n', 'text/html', 200),
self.assertEqual((b'Hello World' + self.linesep, 'text/html', 200),
(res.read(), res.getheader('Content-type'), res.status))