From 39791c8e6de3a71879eb26dd9f8d01273847f395 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 6 Nov 2019 06:14:30 -0800 Subject: Harmonized Windows checks in tests to a single style. --- tests/model_fields/test_filefield.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/model_fields') 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): -- cgit v1.3