Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo, failing test
  • Loading branch information
nyalldawson committed Jul 25, 2018
1 parent d3bee8d commit 20e62b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgsmulticurve.sip.in
Expand Up @@ -58,7 +58,7 @@ Returns a copy of the multi curve, where each component curve has had its line d

SIP_PYOBJECT __repr__();
%MethodCode
QString str = QStringLiteral( "<QgsMulitCurve: %1>" ).arg( sipCpp->asWkt() );
QString str = QStringLiteral( "<QgsMultiCurve: %1>" ).arg( sipCpp->asWkt() );
sipRes = PyUnicode_FromString( str.toUtf8().data() );
%End

Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsmulticurve.h
Expand Up @@ -76,7 +76,7 @@ class CORE_EXPORT QgsMultiCurve: public QgsGeometryCollection
#ifdef SIP_RUN
SIP_PYOBJECT __repr__();
% MethodCode
QString str = QStringLiteral( "<QgsMulitCurve: %1>" ).arg( sipCpp->asWkt() );
QString str = QStringLiteral( "<QgsMultiCurve: %1>" ).arg( sipCpp->asWkt() );
sipRes = PyUnicode_FromString( str.toUtf8().data() );
% End
#endif
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_python_repr.py
Expand Up @@ -70,7 +70,7 @@ def testQgsMulticurveRepr(self):
mc.addGeometry(cs)
cs2 = QgsCircularString(QgsPoint(4, 20), QgsPoint(5, 22), QgsPoint(6, 24))
mc.addGeometry(cs2)
self.assertEqual(mc.__repr__(), '<QgsMulitCurve: MultiCurve (CircularString (1 10, 2 11, 3 12),CircularString (4 20, 5 22, 6 24))>')
self.assertEqual(mc.__repr__(), '<QgsMultiCurve: MultiCurve (CircularString (1 10, 2 11, 3 12),CircularString (4 20, 5 22, 6 24))>')

def testQgsMultilineStringRepr(self):
ml = QgsGeometry.fromMultiPolylineXY(
Expand Down

0 comments on commit 20e62b4

Please sign in to comment.