mirror of https://github.com/scrapy/scrapy.git
fixed failing test on win32
This commit is contained in:
parent
3cda681755
commit
42e8346d06
|
|
@ -17,6 +17,7 @@ class FetchTest(ProcessTest, SiteTest, unittest.TestCase):
|
|||
@defer.inlineCallbacks
|
||||
def test_headers(self):
|
||||
_, out, _ = yield self.execute([self.url('/text'), '--headers'])
|
||||
out = out.replace('\r', '') # required on win32
|
||||
headers = eval(out)
|
||||
assert 'TwistedWeb' in headers['Server'][0]
|
||||
self.assertEqual(headers['Content-Type'], ['text/plain'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue