Fix SyntaxWarning x is 0

Fixes #28
This commit is contained in:
Cosimo Lupo 2020-12-27 10:53:08 +01:00
parent fc2772aba0
commit 2830e21bc2
No known key found for this signature in database
GPG key ID: 0DED0F50A2245570

View file

@ -273,7 +273,7 @@ class TestPyclipperExecute(TestCase):
assert result == path
def check_pypolynode(self, node):
self.assertTrue(len(node.Contour) is 0 or len(node.Contour) > 2)
self.assertTrue(len(node.Contour) == 0 or len(node.Contour) > 2)
# check vertex coordinate, should not be an iterable (in that case
# that means that node.Contour is a list of paths, should be path