Skip to content

Commit

Permalink
Better method to avoid test on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent 89aa19f commit 25c94d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/python/test_provider_mssql.py
Expand Up @@ -66,6 +66,10 @@ def setUpClass(cls):
cls.conn.setPassword('<YourStrong!Passw0rd>')
assert cls.conn.open(), cls.conn.lastError().text()

# Triggers a segfault in the sql server odbc driver on Travis - TODO test with more recent Ubuntu base image
if os.environ.get('TRAVIS', '') == 'true':
del cls.getEditableLayer

@classmethod
def tearDownClass(cls):
"""Run after all tests"""
Expand Down Expand Up @@ -117,10 +121,6 @@ def getSource(self):
return vl

def getEditableLayer(self):
# Triggers a segfault in the sql server odbc driver on Travis - TODO test with more recent Ubuntu base image
if os.environ.get('TRAVIS', '') == 'true':
return

return self.getSource()

def enableCompiler(self):
Expand Down

0 comments on commit 25c94d4

Please sign in to comment.