Change intersection test to check is_empty
Related to new behaviour for POINT EMPTY with GEOS 3.8.0
@@ -22,8 +22,7 @@ class OperationsTestCase(unittest.TestCase):
self.assertIsInstance(point.envelope, Point)
# Intersection
- self.assertIsInstance(point.intersection(Point(-1, -1)),
- GeometryCollection)
+ self.assertTrue(point.intersection(Point(-1, -1)).is_empty)
# Buffer
self.assertIsInstance(point.buffer(10.0), Polygon)
