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):
relations = ('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'])
def test_mapped_attributes_hidden(self):
......
Supports Markdown
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