Skip to content

Commit 25c94d4

Browse files
committed
Better method to avoid test on Travis
1 parent 89aa19f commit 25c94d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/src/python/test_provider_mssql.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def setUpClass(cls):
6666
cls.conn.setPassword('<YourStrong!Passw0rd>')
6767
assert cls.conn.open(), cls.conn.lastError().text()
6868

69+
# Triggers a segfault in the sql server odbc driver on Travis - TODO test with more recent Ubuntu base image
70+
if os.environ.get('TRAVIS', '') == 'true':
71+
del cls.getEditableLayer
72+
6973
@classmethod
7074
def tearDownClass(cls):
7175
"""Run after all tests"""
@@ -117,10 +121,6 @@ def getSource(self):
117121
return vl
118122

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

126126
def enableCompiler(self):

0 commit comments

Comments
 (0)