diff --git a/python/plugins/processing/tests/AlgorithmsTestBase.py b/python/plugins/processing/tests/AlgorithmsTestBase.py index 04124b21493..d9d1fd75c22 100644 --- a/python/plugins/processing/tests/AlgorithmsTestBase.py +++ b/python/plugins/processing/tests/AlgorithmsTestBase.py @@ -91,7 +91,7 @@ class AlgorithmsTest(): expectFailure = False if 'expectedFailure' in defs: - exec('\n'.join(defs['expectedFailure'][:-1])) in globals(), locals() + exec(('\n'.join(defs['expectedFailure'][:-1])), globals(), locals()) expectFailure = eval(defs['expectedFailure'][-1]) def doCheck(): diff --git a/tests/src/python/test_provider_memory.py b/tests/src/python/test_provider_memory.py index 52096fb18a0..f6024ae99de 100644 --- a/tests/src/python/test_provider_memory.py +++ b/tests/src/python/test_provider_memory.py @@ -108,13 +108,13 @@ class TestPyQgsMemoryProvider(unittest.TestCase, ProviderTestCase): def testGetFeaturesSubsetAttributes2(self): """ Override and skip this test for memory provider, as it's actually more efficient for the memory provider to return - its features as direct copies (due to implicit sharing of QgsFeature) + its features as direct copies (due to implicit sharing of QgsFeature) """ pass def testGetFeaturesNoGeometry(self): """ Override and skip this test for memory provider, as it's actually more efficient for the memory provider to return - its features as direct copies (due to implicit sharing of QgsFeature) + its features as direct copies (due to implicit sharing of QgsFeature) """ pass @@ -331,13 +331,13 @@ class TestPyQgsMemoryProviderIndexed(unittest.TestCase, ProviderTestCase): def testGetFeaturesSubsetAttributes2(self): """ Override and skip this test for memory provider, as it's actually more efficient for the memory provider to return - its features as direct copies (due to implicit sharing of QgsFeature) + its features as direct copies (due to implicit sharing of QgsFeature) """ pass def testGetFeaturesNoGeometry(self): """ Override and skip this test for memory provider, as it's actually more efficient for the memory provider to return - its features as direct copies (due to implicit sharing of QgsFeature) + its features as direct copies (due to implicit sharing of QgsFeature) """ pass