@@ -104,10 +104,10 @@ def test_action_returns_non_serializable_result(self):
104
104
105
105
if six .PY2 :
106
106
expected_result_re = (r"\[{'a': '1'}, {'h': 3, 'c': 2}, {'e': "
107
- "<non_simple_type.Test object at .*?>}\]" )
107
+ r "<non_simple_type.Test object at .*?>}\]" )
108
108
else :
109
109
expected_result_re = (r"\[{'a': '1'}, {'c': 2, 'h': 3}, {'e': "
110
- "<non_simple_type.Test object at .*?>}\]" )
110
+ r "<non_simple_type.Test object at .*?>}\]" )
111
111
112
112
match = re .match (expected_result_re , output ['result' ])
113
113
self .assertTrue (match )
@@ -624,17 +624,17 @@ def test_python_action_wrapper_action_script_file_doesnt_exist_friendly_error(se
624
624
wrapper = PythonActionWrapper (pack = 'dummy_pack_5' , file_path = ACTION_1_PATH ,
625
625
user = 'joe' )
626
626
627
- expected_msg = ('Failed to load action class from file ".*?list_repos_doesnt_exist.py" '
628
- '\(action file most likely doesn\' t exist or contains invalid syntax\): '
629
- '\[Errno 2\] No such file or directory' )
627
+ expected_msg = (r 'Failed to load action class from file ".*?list_repos_doesnt_exist.py" '
628
+ r '\(action file most likely doesn\'t exist or contains invalid syntax\): '
629
+ r '\[Errno 2\] No such file or directory' )
630
630
self .assertRaisesRegexp (Exception , expected_msg , wrapper ._get_action_instance )
631
631
632
632
def test_python_action_wrapper_action_script_file_contains_invalid_syntax_friendly_error (self ):
633
633
wrapper = PythonActionWrapper (pack = 'dummy_pack_5' , file_path = ACTION_2_PATH ,
634
634
user = 'joe' )
635
- expected_msg = ('Failed to load action class from file ".*?invalid_syntax.py" '
636
- '\(action file most likely doesn\' t exist or contains invalid syntax\): '
637
- 'No module named \' ?invalid\' ?' )
635
+ expected_msg = (r 'Failed to load action class from file ".*?invalid_syntax.py" '
636
+ r '\(action file most likely doesn\'t exist or contains invalid syntax\): '
637
+ r 'No module named \'?invalid\'?' )
638
638
self .assertRaisesRegexp (Exception , expected_msg , wrapper ._get_action_instance )
639
639
640
640
def test_simple_action_log_messages_and_log_level_runner_param (self ):
0 commit comments