mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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>')
|
cls.conn.setPassword('<YourStrong!Passw0rd>')
|
||||||
assert cls.conn.open(), cls.conn.lastError().text()
|
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
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
"""Run after all tests"""
|
"""Run after all tests"""
|
||||||
@ -117,10 +121,6 @@ class TestPyQgsMssqlProvider(unittest.TestCase, ProviderTestCase):
|
|||||||
return vl
|
return vl
|
||||||
|
|
||||||
def getEditableLayer(self):
|
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()
|
return self.getSource()
|
||||||
|
|
||||||
def enableCompiler(self):
|
def enableCompiler(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user