mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Better method to avoid test on Travis
This commit is contained in:
parent
89aa19f643
commit
25c94d48b5
@ -66,6 +66,10 @@ class TestPyQgsMssqlProvider(unittest.TestCase, ProviderTestCase):
|
||||
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 @@ class TestPyQgsMssqlProvider(unittest.TestCase, ProviderTestCase):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user