diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-06 06:14:30 -0800 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-06 15:14:30 +0100 |
commit | 39791c8e6de3a71879eb26dd9f8d01273847f395 (patch) | |
tree | 4de3a588b3098cd51f5a5ae0b1830d36a57a1ab3 /tests/asgi | |
parent | e3c2fae4cd549a6aeefcf7b217ba4b173489e18c (diff) | |
download | django-39791c8e6de3a71879eb26dd9f8d01273847f395.tar.gz |
Harmonized Windows checks in tests to a single style.
Diffstat (limited to 'tests/asgi')
-rw-r--r-- | tests/asgi/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/asgi/tests.py b/tests/asgi/tests.py index eee12b95ba..3a26d3130f 100644 --- a/tests/asgi/tests.py +++ b/tests/asgi/tests.py @@ -78,7 +78,7 @@ class ASGITest(SimpleTestCase): set(response_start['headers']), { (b'Content-Length', str(len(test_file_contents)).encode('ascii')), - (b'Content-Type', b'text/plain' if sys.platform.startswith('win') else b'text/x-python'), + (b'Content-Type', b'text/plain' if sys.platform == 'win32' else b'text/x-python'), (b'Content-Disposition', b'inline; filename="urls.py"'), }, ) |