Skip to content

Commit dd0d71a

Browse files
committedMay 6, 2020
Fix tests
1 parent 0aa1eb0 commit dd0d71a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/plugins/processing/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
__copyright__ = '(C) 2012, Victor Olaya'
2323

2424
from processing.tools.dataobjects import * # NOQA
25+
from processing.tools.dataobjects import createContext
2526
from processing.tools.general import * # NOQA
2627
from processing.tools.general import (
2728
algorithmHelp,
2829
run,
2930
runAndLoadResults,
3031
createAlgorithmDialog,
31-
execAlgorithmDialog,
32-
createContext
32+
execAlgorithmDialog
3333
)
3434
from processing.tools.vector import * # NOQA
3535
from processing.tools.raster import * # NOQA

‎tests/src/python/test_qgsserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def setUp(self):
139139

140140
def strip_version_xmlns(self, text):
141141
"""Order of attributes is random, strip version and xmlns"""
142-
return text.replace(br'version="1.3.0"', r'').replace(br'xmlns="http://www.opengis.net/ogc"', b'')
142+
return text.replace(b'version="1.3.0"', b'').replace(b'xmlns="http://www.opengis.net/ogc"', b'')
143143

144144
def assert_headers(self, header, body):
145145
stream = StringIO()

0 commit comments

Comments
 (0)
Please sign in to comment.