Commit 84e9ffcb authored by Michal Čihař's avatar Michal Čihař

Do not check exact error message

It has changed in Python 3...
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7090e34f
...@@ -754,9 +754,8 @@ class SubProjectTest(RepoTestCase): ...@@ -754,9 +754,8 @@ class SubProjectTest(RepoTestCase):
def test_validation_languge_re(self): def test_validation_languge_re(self):
subproject = self.create_subproject() subproject = self.create_subproject()
subproject.language_regex = '[-' subproject.language_regex = '[-'
self.assertRaisesMessage( self.assertRaises(
ValidationError, ValidationError,
'Failed to compile: unexpected end of regular expression',
subproject.full_clean subproject.full_clean
) )
......
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