1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Harmonized Windows checks in tests to a single style.

This commit is contained in:
Jon Dufresne
2019-11-06 06:14:30 -08:00
committed by Carlton Gibson
parent e3c2fae4cd
commit 39791c8e6d
8 changed files with 10 additions and 10 deletions

View File

@@ -376,7 +376,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
with self.assertRaisesMessage(management.CommandError, "Unknown model: fixtures.FooModel"):
self._dumpdata_assert(['fixtures', 'sites'], '', exclude_list=['fixtures.FooModel'])
@unittest.skipIf(sys.platform.startswith('win'), "Windows doesn't support '?' in filenames.")
@unittest.skipIf(sys.platform == 'win32', "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>'])