Skip to content

Commit

Permalink
Python 3.5 on Windows doesn't have x-python mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalresistor committed Nov 21, 2016
1 parent 0ce656a commit d08dded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def tearDown(self):
def test_fileapp(self):
app = static.FileApp(self.tempfile)
resp1 = get_response(app)
self.assertEqual(resp1.content_type, 'text/x-python')
assert resp1.content_type in ('text/x-python', 'text/plain')
self.assertEqual(resp1.charset, 'UTF-8')
self.assertEqual(resp1.last_modified.timetuple(), gmtime(getmtime(self.tempfile)))
self.assertEqual(resp1.body, b"import this\n")

resp2 = get_response(app)
self.assertEqual(resp2.content_type, 'text/x-python')
assert resp2.content_type in ('text/x-python', 'text/plain')
self.assertEqual(resp2.last_modified.timetuple(), gmtime(getmtime(self.tempfile)))
self.assertEqual(resp2.body, b"import this\n")

Expand Down

0 comments on commit d08dded

Please sign in to comment.