@@ -216,21 +216,21 @@ def test_GIVEN_running_state_WHEN_pause_run_THEN_pause_run(self):
216216
217217 def test_GIVEN_one_block_WHEN_cset_runcontrol_and_wait__true_THEN_exception (self ):
218218 create_dummy_blocks (["a" ])
219- with self .assertRaisesRegexp (
219+ with self .assertRaisesRegex (
220220 Exception , "Cannot enable or disable runcontrol at the same time as setting a wait"
221221 ):
222222 genie .cset (a = 1 , runcontrol = True , wait = True )
223223
224224 def test_GIVEN_multiple_blocks_WHEN_cset_runcontrol_THEN_exception (self ):
225225 create_dummy_blocks (["a" , "b" ])
226- with self .assertRaisesRegexp (
226+ with self .assertRaisesRegex (
227227 Exception , "Runcontrol and wait can only be changed for one block at a time"
228228 ):
229229 genie .cset (a = 1 , b = 2 , runcontrol = True )
230230
231231 def test_GIVEN_multiple_blocks_WHEN_cset_wait_THEN_exception (self ):
232232 create_dummy_blocks (["a" , "b" ])
233- with self .assertRaisesRegexp (
233+ with self .assertRaisesRegex (
234234 Exception , "Runcontrol and wait can only be changed for one block at a time"
235235 ):
236236 genie .cset (a = 1 , b = 2 , wait = True )
@@ -240,7 +240,7 @@ def test_GIVEN_period_WHEN_set_period_to_higher_value_THEN_exception(self):
240240 period = genie .get_number_periods ()
241241
242242 # Assert
243- with self .assertRaisesRegexp (
243+ with self .assertRaisesRegex (
244244 Exception , "Cannot set period as it is higher than the number of periods"
245245 ):
246246 genie .change_period (period + 1 )
0 commit comments