summaryrefslogtreecommitdiff
path: root/tests/gis_tests/gdal_tests/test_envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gis_tests/gdal_tests/test_envelope.py')
-rw-r--r--tests/gis_tests/gdal_tests/test_envelope.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/gis_tests/gdal_tests/test_envelope.py b/tests/gis_tests/gdal_tests/test_envelope.py
index c6e5026fe4..8ea06ff426 100644
--- a/tests/gis_tests/gdal_tests/test_envelope.py
+++ b/tests/gis_tests/gdal_tests/test_envelope.py
@@ -39,10 +39,8 @@ class EnvelopeTest(unittest.TestCase):
Envelope('foo')
with self.assertRaises(GDALException):
Envelope((1, 1, 0, 0))
- try:
- Envelope(0, 0, 0, 0)
- except GDALException:
- self.fail("shouldn't raise an exception for min_x == max_x or min_y == max_y")
+ # Shouldn't raise an exception for min_x == max_x or min_y == max_y
+ Envelope(0, 0, 0, 0)
def test02_properties(self):
"Testing Envelope properties."