Harmonized Windows checks in tests to a single style.

This commit is contained in:
Jon Dufresne 2019-11-06 06:14:30 -08:00 committed by Carlton Gibson
parent e3c2fae4cd
commit 39791c8e6d
8 changed files with 10 additions and 10 deletions

View file

@ -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):