Skip to content

Commit

Permalink
adjust to different naming of assertraisesregex on python 2
Browse files Browse the repository at this point in the history
Signed-off-by: oleg.hoefling <[email protected]>
  • Loading branch information
hoefling committed May 23, 2020
1 parent bce33c2 commit f9fe561
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

import unittest

if sys.version_info < (3, ):
unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp


etype = type(etree.Element("test"))

Expand Down

0 comments on commit f9fe561

Please sign in to comment.