Commit 9fd09592 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

chore(test): fix a DeprecationWarning

--HG--
branch : 0.1
parent c4683a270dba
...@@ -264,7 +264,7 @@ class CompoundMapperTC(CubicWebTC): ...@@ -264,7 +264,7 @@ class CompoundMapperTC(CubicWebTC):
relations = ('flash', ) relations = ('flash', )
expected_regexp = 'duplicate relation mapping for "Photo": flash' expected_regexp = 'duplicate relation mapping for "Photo": flash'
with self.assertRaisesRegexp(ValueError, expected_regexp): with self.assertRaisesRegex(ValueError, expected_regexp):
bad_compound.__registered__(self.vreg['mappers']) bad_compound.__registered__(self.vreg['mappers'])
def test_mapped_attributes_hidden(self): def test_mapped_attributes_hidden(self):
......
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