Skip to content
Permalink
Browse files

Better method to avoid test on Travis

  • Loading branch information
nyalldawson committed Oct 23, 2018
1 parent 89aa19f commit 25c94d48b501397c96f02429d4d0ce35ac805f1c
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/test_provider_mssql.py
@@ -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"""
@@ -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):

0 comments on commit 25c94d4

Please sign in to comment.
You can’t perform that action at this time.