]> granicus.if.org Git - python/commitdiff
expect the correct platform-dependent linesep
authorBenjamin Peterson <benjamin@python.org>
Tue, 17 Jun 2014 06:15:50 +0000 (23:15 -0700)
committerBenjamin Peterson <benjamin@python.org>
Tue, 17 Jun 2014 06:15:50 +0000 (23:15 -0700)
Lib/test/test_httpservers.py

index bb75f7852503d25b71d9ad71521af1c2f71460f0..bed55e815366360699b21f491cef05c427da59a7 100644 (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))