diff options
author | Natanael Arndt <arndtn@gmail.com> | 2020-04-17 23:10:56 +0200 |
---|---|---|
committer | Natanael Arndt <arndtn@gmail.com> | 2020-04-17 23:10:56 +0200 |
commit | 5b1a9d09f866ead87073deb4c8d0ba9f3aaccf8e (patch) | |
tree | 5610b9203dc660b2e66454db50f7d0da151e3b71 | |
parent | 972f76a4b82f8ed9194236e75415063612d9c635 (diff) | |
download | rdflib-5b1a9d09f866ead87073deb4c8d0ba9f3aaccf8e.tar.gz |
Fix for python 2.7
-rw-r--r-- | test/test_n3.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_n3.py b/test/test_n3.py index 354bb073..5cdc74b5 100644 --- a/test/test_n3.py +++ b/test/test_n3.py @@ -262,13 +262,13 @@ class TestRegularExpressions(unittest.TestCase): exps = ("1", "12", "+1", "-1", "+12", "-12") for parts in itertools.product(signs, mantissas, es, exps): expstring = "".join(parts) - self.assertRegex(expstring, exponent_syntax) + self.assertTrue(exponent_syntax.match(expstring)) def testInvalidExponents(self): # Add test cases as needed invalid = (".e1",) for expstring in invalid: - self.assertNotRegex(expstring, exponent_syntax) + self.assertFalse(exponent_syntax.match(expstring)) if __name__ == '__main__': |