diff --git a/tests/test_livemediaphase.py b/tests/test_livemediaphase.py index 4cde3750..e67bceaa 100644 --- a/tests/test_livemediaphase.py +++ b/tests/test_livemediaphase.py @@ -328,7 +328,7 @@ class TestLiveMediaPhase(PungiTestCase): phase = LiveMediaPhase(compose) - with self.assertRaisesRegex(RuntimeError, r'no.+Missing.+when building.+Server'): + with self.assertRaisesRegexp(RuntimeError, r'no.+Missing.+when building.+Server'): phase.run() @mock.patch('pungi.phases.livemedia_phase.ThreadPool') @@ -353,7 +353,7 @@ class TestLiveMediaPhase(PungiTestCase): phase = LiveMediaPhase(compose) - with self.assertRaisesRegex(RuntimeError, r'There is no variant Missing to get repo from.'): + with self.assertRaisesRegexp(RuntimeError, r'There is no variant Missing to get repo from.'): phase.run() @mock.patch('pungi.util.resolve_git_url')