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:
committed by
Carlton Gibson
parent
e3c2fae4cd
commit
39791c8e6d
2
tests/fixtures/tests.py
vendored
2
tests/fixtures/tests.py
vendored
@@ -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>'])
|
||||
|
||||
Reference in New Issue
Block a user