Skipped a problematic file_storage test on Windows.

This commit is contained in:
Tim Graham 2015-01-14 15:00:27 -05:00
parent 2d5da57f48
commit 9801d419b9
1 changed files with 4 additions and 0 deletions

View File

@ -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.