Permalink
Browse files

Fix AssertionError syntax

  • Loading branch information...
geographika committed Mar 11, 2018
1 parent d30ec22 commit d33d0ed123418e9c0cfb5a0c7fb1f68343a7a0d6
Showing with 2 additions and 4 deletions.
  1. +2 −4 mapscript/python/tests/cases/testing.py
@@ -68,9 +68,8 @@ class MapscriptTestCase(unittest.TestCase):
def assertAlmostEqual(self, first, second, places=7):
"""Copied from unittest for use with Python 2.1 or 2.2"""
if round(second-first, places) != 0:
raise AssertionError, \
'%s != %s within %s places' % (`first`, `second`, `places`)
raise AssertionError('%s != %s within %s places' % (`first`, `second`, `places`))
class MapPrimitivesTestCase(MapscriptTestCase):
"""Base class for testing primitives (points, lines, shapes)
in stand-alone mode"""
@@ -164,4 +163,3 @@ def tearDown(self):
class ShapeObjTestCase(MapPrimitivesTestCase):
"""Base class for shapeObj tests"""
pass

0 comments on commit d33d0ed

Please sign in to comment.