Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move new composer tests to pyqt wrappers (followup 7a8a541 and f413046)
  • Loading branch information
jef-n committed Apr 1, 2016
1 parent aef26c9 commit 4f6c271
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions scripts/qgis_fixes/fix_print_with_import.py
Expand Up @@ -6,12 +6,12 @@ class FixPrintWithImport(FixPrintWithImportOrig):

def match(self, node):
isPrint = super(FixPrintWithImport, self).match(node)
if isPrint and
len(node.children) == 2 and \
isinstance(node.children[0], Leaf) and \
isinstance(node.children[1], Node) and node.children[1].type == syms.atom and \
isinstance(node.children[1].children[0], Leaf) and node.children[1].children[0].value == '(' and \
isinstance(node.children[1].children[-1], Leaf) and node.children[1].children[-1].value == ')':
if isPrint and \
len(node.children) == 2 and \
isinstance(node.children[0], Leaf) and \
isinstance(node.children[1], Node) and node.children[1].type == syms.atom and \
isinstance(node.children[1].children[0], Leaf) and node.children[1].children[0].value == '(' and \
isinstance(node.children[1].children[-1], Leaf) and node.children[1].children[-1].value == ')':
return False

return ok
6 changes: 3 additions & 3 deletions tests/src/python/test_qgscomposerpolygon.py
Expand Up @@ -14,9 +14,9 @@

import qgis

from PyQt4.QtGui import QColor
from PyQt4.QtGui import QPolygonF
from PyQt4.QtCore import QPointF
from PyQt.QtGui import QColor
from PyQt.QtGui import QPolygonF
from PyQt.QtCore import QPointF

from qgis.core import (QgsComposerPolygon,
QgsComposerItem,
Expand Down
6 changes: 3 additions & 3 deletions tests/src/python/test_qgscomposerpolyline.py
Expand Up @@ -14,9 +14,9 @@

import qgis

from PyQt4.QtGui import QColor
from PyQt4.QtGui import QPolygonF
from PyQt4.QtCore import QPointF
from PyQt.QtGui import QColor
from PyQt.QtGui import QPolygonF
from PyQt.QtCore import QPointF

from qgis.core import (QgsComposerPolyline,
QgsComposerItem,
Expand Down

0 comments on commit 4f6c271

Please sign in to comment.