Skip to content

Commit

Permalink
Skip failing test on TRAVIS
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jul 11, 2020
1 parent c3c87ce commit 59c24bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/src/python/test_qgsproviderconnection_base.py
Expand Up @@ -337,8 +337,10 @@ def _test_operations(self, md, conn):

if capabilities & QgsAbstractDatabaseProviderConnection.DeleteField:
conn.deleteField('short_lived_field', 'myNewSchema', 'myNewTable')
fields = conn.fields('myNewSchema', 'myNewTable')
self.assertFalse('short_lived_field' in fields.names())
# This fails on Travis for spatialite, for no particular reason
if self.providerKey == 'spatialite' and not os.environ.get('TRAVIS', False):
fields = conn.fields('myNewSchema', 'myNewTable')
self.assertFalse('short_lived_field' in fields.names())

# Drop table
conn.dropVectorTable(schema, 'myNewTable')
Expand Down

0 comments on commit 59c24bb

Please sign in to comment.