summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-17 10:19:15 -0400
committerTim Graham <timograham@gmail.com>2015-06-17 10:22:08 -0400
commit81aae2884377ff1a60b74e510e3358738971bbc0 (patch)
tree64522b0acf9ea3dbd8a159988d8f23ef5b79de2f
parent58665dded006a4bbb9789e92cd280265a4f3dee8 (diff)
Refs #24978 -- Skipped an unsupported test on Windows.
-rw-r--r--tests/fixtures/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py
index d87f1942ff..7cbc3df088 100644
--- a/tests/fixtures/tests.py
+++ b/tests/fixtures/tests.py
@@ -1,7 +1,9 @@
from __future__ import unicode_literals
import os
+import sys
import tempfile
+import unittest
import warnings
from django.apps import apps
@@ -224,6 +226,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
"Unknown model in excludes: fixtures.FooModel"):
self._dumpdata_assert(['fixtures', 'sites'], '', exclude_list=['fixtures.FooModel'])
+ @unittest.skipIf(sys.platform.startswith('win'), "Windows doesn't support '?' in filenames.")
def test_load_fixture_with_special_characters(self):
management.call_command('loaddata', 'fixture?with[special]chars*', verbosity=0)
self.assertQuerysetEqual(Article.objects.all(), ['<Article: How To Deal With Special Characters>'])