summaryrefslogtreecommitdiff
path: root/tests/file_storage
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-06 06:14:30 -0800
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-11-06 15:14:30 +0100
commit39791c8e6de3a71879eb26dd9f8d01273847f395 (patch)
tree4de3a588b3098cd51f5a5ae0b1830d36a57a1ab3 /tests/file_storage
parente3c2fae4cd549a6aeefcf7b217ba4b173489e18c (diff)
downloaddjango-39791c8e6de3a71879eb26dd9f8d01273847f395.tar.gz
Harmonized Windows checks in tests to a single style.
Diffstat (limited to 'tests/file_storage')
-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