From 81aae2884377ff1a60b74e510e3358738971bbc0 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 17 Jun 2015 10:19:15 -0400 Subject: [PATCH] Refs #24978 -- Skipped an unsupported test on Windows. --- tests/fixtures/tests.py | 3 +++ 1 file changed, 3 insertions(+) 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(), [''])