@@ -98,18 +98,18 @@ def test_constructors(self):
9898 assert stream .get_stream_name () is None
9999
100100 # Test that we cannot instantiate directly
101- with self .assertRaisesRegexp (
101+ with self .assertRaisesRegex (
102102 TypeError , "cannot create instance of abstract"
103103 ):
104104 Modulemd .ModuleStream ()
105105
106106 # Test with a zero mdversion
107- with self .assertRaisesRegexp (TypeError , "constructor returned NULL" ):
107+ with self .assertRaisesRegex (TypeError , "constructor returned NULL" ):
108108 with self .expect_signal ():
109109 defs = Modulemd .ModuleStream .new (0 )
110110
111111 # Test with an unknown mdversion
112- with self .assertRaisesRegexp (TypeError , "constructor returned NULL" ):
112+ with self .assertRaisesRegex (TypeError , "constructor returned NULL" ):
113113 with self .expect_signal ():
114114 defs = Modulemd .ModuleStream .new (
115115 Modulemd .ModuleStreamVersionEnum .LATEST + 1
@@ -1273,7 +1273,7 @@ def test_validate_buildafter(self):
12731273
12741274 # Should fail validation if both buildorder and buildafter are set for
12751275 # the same component.
1276- with self .assertRaisesRegexp (
1276+ with self .assertRaisesRegex (
12771277 gi .repository .GLib .GError ,
12781278 "Cannot mix buildorder and buildafter" ,
12791279 ):
@@ -1285,7 +1285,7 @@ def test_validate_buildafter(self):
12851285
12861286 # Should fail validation if both buildorder and buildafter are set in
12871287 # different components of the same stream.
1288- with self .assertRaisesRegexp (
1288+ with self .assertRaisesRegex (
12891289 gi .repository .GLib .GError ,
12901290 "Cannot mix buildorder and buildafter" ,
12911291 ):
@@ -1297,7 +1297,7 @@ def test_validate_buildafter(self):
12971297
12981298 # Should fail if a key specified in a buildafter set does not exist
12991299 # for this module stream.
1300- with self .assertRaisesRegexp (
1300+ with self .assertRaisesRegex (
13011301 gi .repository .GLib .GError , "not found in components list"
13021302 ):
13031303 stream = Modulemd .ModuleStream .read_file (
0 commit comments