- converted from Python2 code to Python3 code
- in camlib.py, CNCJob class -> generate_from_excellon_by_tool() was failing in the line to sort the tools due of been unable to compare between dict's. I replaced that section.
This commit is contained in:
@@ -8,10 +8,10 @@ class PolygonTestCase(unittest.TestCase):
|
||||
MultiPoint([(-5, 0), (5, 0)]).buffer(3.0))
|
||||
def test_patch(self):
|
||||
patch = PolygonPatch(self.polygon)
|
||||
self.failUnlessEqual(str(type(patch)),
|
||||
self.assertEqual(str(type(patch)),
|
||||
"<class 'matplotlib.patches.PathPatch'>")
|
||||
path = patch.get_path()
|
||||
self.failUnless(len(path.vertices) == len(path.codes) == 198)
|
||||
self.assertTrue(len(path.vertices) == len(path.codes) == 198)
|
||||
|
||||
class JSONPolygonTestCase(unittest.TestCase):
|
||||
polygon = Point(0, 0).buffer(10.0).difference(
|
||||
@@ -19,10 +19,10 @@ class JSONPolygonTestCase(unittest.TestCase):
|
||||
def test_patch(self):
|
||||
geo = self.polygon.__geo_interface__
|
||||
patch = PolygonPatch(geo)
|
||||
self.failUnlessEqual(str(type(patch)),
|
||||
self.assertEqual(str(type(patch)),
|
||||
"<class 'matplotlib.patches.PathPatch'>")
|
||||
path = patch.get_path()
|
||||
self.failUnless(len(path.vertices) == len(path.codes) == 198)
|
||||
self.assertTrue(len(path.vertices) == len(path.codes) == 198)
|
||||
|
||||
class GeoInterfacePolygonTestCase(unittest.TestCase):
|
||||
class GeoThing:
|
||||
@@ -32,7 +32,7 @@ class GeoInterfacePolygonTestCase(unittest.TestCase):
|
||||
MultiPoint([(-5, 0), (5, 0)]).buffer(3.0)).__geo_interface__
|
||||
def test_patch(self):
|
||||
patch = PolygonPatch(self.thing)
|
||||
self.failUnlessEqual(str(type(patch)),
|
||||
self.assertEqual(str(type(patch)),
|
||||
"<class 'matplotlib.patches.PathPatch'>")
|
||||
path = patch.get_path()
|
||||
self.failUnless(len(path.vertices) == len(path.codes) == 198)
|
||||
self.assertTrue(len(path.vertices) == len(path.codes) == 198)
|
||||
|
||||
Reference in New Issue
Block a user