diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-14 13:46:15 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-14 13:57:10 -0500 |
| commit | 02c059ff7f282e541629a67e25a70a292cc01d87 (patch) | |
| tree | 7d4662b96e5a65b666ae95275a0c1606e39bf37d | |
| parent | 2e2617991a6f446defc755c6b73e6e9db865f197 (diff) | |
[1.7.x] Fixed a static view test on Windows.
Backport of a6f144fd4fee0090de3a99b1f50a4142722e7946 from master
| -rw-r--r-- | tests/view_tests/tests/test_static.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/view_tests/tests/test_static.py b/tests/view_tests/tests/test_static.py index b734bb656b..c7a36ce743 100644 --- a/tests/view_tests/tests/test_static.py +++ b/tests/view_tests/tests/test_static.py @@ -39,7 +39,8 @@ class StaticTests(SimpleTestCase): 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) |
