Commit 56b67a16 authored by Ian Lee's avatar Ian Lee

Reverted to older unittest.TestCase.assertRaises form.

This form is compatible with Python 2.6.

Fixes the failures found with Travis builds [53, 54]
parent a1c4f551
......@@ -687,8 +687,7 @@ class KmlFromStringTestCase( unittest.TestCase ):
def test_from_wrong_string(self):
doc = kml.KML()
with self.assertRaises(TypeError):
doc.from_string('<xml></xml>')
self.assertRaises(TypeError, doc.from_string, '<xml></xml>')
class StyleTestCase( unittest.TestCase ):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment