mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Harmonized Windows checks in tests to a single style.
This commit is contained in:
parent
e3c2fae4cd
commit
39791c8e6d
8 changed files with 10 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue