summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
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):