fixed failing test on win32

This commit is contained in:
Pablo Hoffman 2010-11-29 10:27:12 -02:00
parent 3cda681755
commit 42e8346d06
1 changed files with 1 additions and 0 deletions

View File

@ -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'])