diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-06 06:14:30 -0800 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-06 15:14:30 +0100 |
| commit | 39791c8e6de3a71879eb26dd9f8d01273847f395 (patch) | |
| tree | 4de3a588b3098cd51f5a5ae0b1830d36a57a1ab3 /tests/fixtures | |
| parent | e3c2fae4cd549a6aeefcf7b217ba4b173489e18c (diff) | |
Harmonized Windows checks in tests to a single style.
Diffstat (limited to 'tests/fixtures')
| -rw-r--r-- | tests/fixtures/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index 7390ab54f9..02dd38e635 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -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>']) |
