diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-11-18 14:22:15 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2018-07-13 18:27:30 +0200 |
| commit | c28bf990d71a8befb954482e3d6a925e89f3176f (patch) | |
| tree | a77ca75807e07c1b357bb815a8b7e3dcbc6de011 /tests | |
| parent | a07a49ee3295061f384d98d520a565658dd064b8 (diff) | |
Refs #29548 -- Fixed GIS tests on MariaDB
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/inspectapp/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py index f499bbdbe0..a57bfcabbd 100644 --- a/tests/gis_tests/inspectapp/tests.py +++ b/tests/gis_tests/inspectapp/tests.py @@ -141,8 +141,10 @@ class OGRInspectTest(TestCase): else: self.assertIn(' f_decimal = models.DecimalField(max_digits=0, decimal_places=0)', model_def) self.assertIn(' f_int = models.IntegerField()', model_def) - self.assertIn(' f_datetime = models.DateTimeField()', model_def) - self.assertIn(' f_time = models.TimeField()', model_def) + if connection.vendor != 'mysql' or not connection.mysql_is_mariadb: + # Probably a bug between GDAL and MariaDB on time fields. + self.assertIn(' f_datetime = models.DateTimeField()', model_def) + self.assertIn(' f_time = models.TimeField()', model_def) if connection.vendor == 'sqlite': self.assertIn(' f_float = models.CharField(max_length=0)', model_def) else: |
