Permalink
Browse files

TOREVIEW. numpoints is immutable but does not raise an error.

  • Loading branch information...
geographika committed Mar 11, 2018
1 parent 0bde55b commit 4411fcbdfc9d7ee2965ed09dc997d4285997f10b
Showing with 5 additions and 2 deletions.
  1. +5 −2 mapscript/python/tests/cases/linetest.py
@@ -66,8 +66,11 @@ def testAddPointToLine(self):
self.addPointToLine(self.line, new_point)
assert self.line.numpoints == 3
def testAlterNumPoints(self):
"""numpoints is immutable, this should raise error"""
def xtestAlterNumPoints(self):
"""
numpoints is immutable, this should raise error
Currently no error is raised, but the numpoints is unchanged
"""
self.assertRaises(AttributeError, setattr, self.line, 'numpoints', 3)
if __name__ == '__main__':

0 comments on commit 4411fcb

Please sign in to comment.