summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-06 06:14:30 -0800
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-11-06 15:14:30 +0100
commit39791c8e6de3a71879eb26dd9f8d01273847f395 (patch)
tree4de3a588b3098cd51f5a5ae0b1830d36a57a1ab3 /tests/model_fields
parente3c2fae4cd549a6aeefcf7b217ba4b173489e18c (diff)
Harmonized Windows checks in tests to a single style.
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/test_filefield.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/test_filefield.py b/tests/model_fields/test_filefield.py
index 9330a2eba2..9642e7e80b 100644
--- a/tests/model_fields/test_filefield.py
+++ b/tests/model_fields/test_filefield.py
@@ -72,7 +72,7 @@ class FileFieldTests(TestCase):
with self.assertRaises(IntegrityError):
Document.objects.create(myfile='something.txt')
- @unittest.skipIf(sys.platform.startswith('win'), "Windows doesn't support moving open files.")
+ @unittest.skipIf(sys.platform == 'win32', "Windows doesn't support moving open files.")
# The file's source and destination must be on the same filesystem.
@override_settings(MEDIA_ROOT=temp.gettempdir())
def test_move_temporary_file(self):