Skip to content

Commit

Permalink
[1.7.x] Fixed a static view test on Windows.
Browse files Browse the repository at this point in the history
Backport of a6f144f from master
  • Loading branch information
timgraham committed Jan 14, 2015
1 parent 2e26179 commit 02c059f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/view_tests/tests/test_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def test_chunked(self):
first_chunk = next(response.streaming_content)
self.assertEqual(len(first_chunk), STREAM_CHUNK_SIZE)
second_chunk = next(response.streaming_content)
self.assertEqual(len(second_chunk), 1451)
# strip() to prevent OS line endings from causing differences
self.assertEqual(len(second_chunk.strip()), 1449)

def test_unknown_mime_type(self):
response = self.client.get('/%s/file.unknown' % self.prefix)
Expand Down

0 comments on commit 02c059f

Please sign in to comment.