From 9801d419b9e3d3c716cb857e4337f403d1c50706 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 14 Jan 2015 15:00:27 -0500 Subject: [PATCH] Skipped a problematic file_storage test on Windows. --- tests/file_storage/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 8e8b0e0a32..4edee3cb80 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -532,6 +532,10 @@ class FileFieldStorageTests(SimpleTestCase): for o in objs: o.delete() + @unittest.skipIf( + sys.platform.startswith('win'), + "Windows supports at most 260 characters in a path.", + ) def test_extended_length_storage(self): # Testing FileField with max_length > 255. Most systems have filename # length limitation of 255. Path takes extra chars.