summaryrefslogtreecommitdiff
path: root/tests/file_storage/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/file_storage/tests.py')
-rw-r--r--tests/file_storage/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py
index be6e11de93..9b41f5250d 100644
--- a/tests/file_storage/tests.py
+++ b/tests/file_storage/tests.py
@@ -771,7 +771,7 @@ class FileFieldStorageTests(TestCase):
o.delete()
@unittest.skipIf(
- sys.platform.startswith('win'),
+ sys.platform == 'win32',
"Windows supports at most 260 characters in a path.",
)
def test_extended_length_storage(self):
@@ -897,7 +897,7 @@ class FileSaveRaceConditionTest(SimpleTestCase):
self.assertRegex(files[1], 'conflict_%s' % FILE_SUFFIX_REGEX)
-@unittest.skipIf(sys.platform.startswith('win'), "Windows only partially supports umasks and chmod.")
+@unittest.skipIf(sys.platform == 'win32', "Windows only partially supports umasks and chmod.")
class FileStoragePermissions(unittest.TestCase):
def setUp(self):
self.umask = 0o027