diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-06 12:51:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 12:51:35 +0200 |
commit | 999cddd58d30469f3ee85278985313fdf528323d (patch) | |
tree | 81230701f3d93bfb7be29b284eebe8b5123d9f89 /tests/inspectdb | |
parent | 143d8e1ab3b7097c7d2bdf77096b96739b6239c6 (diff) | |
download | django-999cddd58d30469f3ee85278985313fdf528323d.tar.gz |
Fixed #32073 -- Skipped collation tests on PostgreSQL < 10.
PostgreSQL < 10 doesn't support ICU collations.
Thanks Hannes Ljungberg for the report.
Diffstat (limited to 'tests/inspectdb')
-rw-r--r-- | tests/inspectdb/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index 6815629e95..b2da1c0a26 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -105,6 +105,7 @@ class InspectDBTestCase(TestCase): self.assertIn('null_json_field = models.JSONField(blank=True, null=True)', output) @skipUnlessDBFeature('supports_collation_on_charfield') + @skipUnless(test_collation, 'Language collations are not supported.') def test_char_field_db_collation(self): out = StringIO() call_command('inspectdb', 'inspectdb_charfielddbcollation', stdout=out) @@ -123,6 +124,7 @@ class InspectDBTestCase(TestCase): ) @skipUnlessDBFeature('supports_collation_on_textfield') + @skipUnless(test_collation, 'Language collations are not supported.') def test_text_field_db_collation(self): out = StringIO() call_command('inspectdb', 'inspectdb_textfielddbcollation', stdout=out) |