@@ -1021,19 +1021,19 @@ def should_not_contain(self, container, item, msg=None, values=True,
1021
1021
if is_string (container ):
1022
1022
container = container .casefold ()
1023
1023
elif is_list_like (container ):
1024
- container = set ( x .casefold () if is_string (x ) else x for x in container )
1024
+ container = { x .casefold () if is_string (x ) else x for x in container }
1025
1025
if strip_spaces and is_string (item ):
1026
1026
item = self ._strip_spaces (item , strip_spaces )
1027
1027
if is_string (container ):
1028
1028
container = self ._strip_spaces (container , strip_spaces )
1029
1029
elif is_list_like (container ):
1030
- container = set ( self ._strip_spaces (x , strip_spaces ) for x in container )
1030
+ container = { self ._strip_spaces (x , strip_spaces ) for x in container }
1031
1031
if collapse_spaces and is_string (item ):
1032
1032
item = self ._collapse_spaces (item )
1033
1033
if is_string (container ):
1034
1034
container = self ._collapse_spaces (container )
1035
1035
elif is_list_like (container ):
1036
- container = set ( self ._collapse_spaces (x ) for x in container )
1036
+ container = { self ._collapse_spaces (x ) for x in container }
1037
1037
if item in container :
1038
1038
raise AssertionError (self ._get_string_msg (orig_container , item , msg ,
1039
1039
values , 'contains' ))
@@ -1077,19 +1077,19 @@ def should_contain(self, container, item, msg=None, values=True,
1077
1077
if is_string (container ):
1078
1078
container = container .casefold ()
1079
1079
elif is_list_like (container ):
1080
- container = set ( x .casefold () if is_string (x ) else x for x in container )
1080
+ container = { x .casefold () if is_string (x ) else x for x in container }
1081
1081
if strip_spaces and is_string (item ):
1082
1082
item = self ._strip_spaces (item , strip_spaces )
1083
1083
if is_string (container ):
1084
1084
container = self ._strip_spaces (container , strip_spaces )
1085
1085
elif is_list_like (container ):
1086
- container = set ( self ._strip_spaces (x , strip_spaces ) for x in container )
1086
+ container = { self ._strip_spaces (x , strip_spaces ) for x in container }
1087
1087
if collapse_spaces and is_string (item ):
1088
1088
item = self ._collapse_spaces (item )
1089
1089
if is_string (container ):
1090
1090
container = self ._collapse_spaces (container )
1091
1091
elif is_list_like (container ):
1092
- container = set ( self ._collapse_spaces (x ) for x in container )
1092
+ container = { self ._collapse_spaces (x ) for x in container }
1093
1093
if item not in container :
1094
1094
raise AssertionError (self ._get_string_msg (orig_container , item , msg ,
1095
1095
values , 'does not contain' ))
@@ -1132,19 +1132,19 @@ def should_contain_any(self, container, *items, **configuration):
1132
1132
if is_string (container ):
1133
1133
container = container .casefold ()
1134
1134
elif is_list_like (container ):
1135
- container = set ( x .casefold () if is_string (x ) else x for x in container )
1135
+ container = { x .casefold () if is_string (x ) else x for x in container }
1136
1136
if strip_spaces :
1137
1137
items = [self ._strip_spaces (x , strip_spaces ) for x in items ]
1138
1138
if is_string (container ):
1139
1139
container = self ._strip_spaces (container , strip_spaces )
1140
1140
elif is_list_like (container ):
1141
- container = set ( self ._strip_spaces (x , strip_spaces ) for x in container )
1141
+ container = { self ._strip_spaces (x , strip_spaces ) for x in container }
1142
1142
if collapse_spaces :
1143
1143
items = [self ._collapse_spaces (x ) for x in items ]
1144
1144
if is_string (container ):
1145
1145
container = self ._collapse_spaces (container )
1146
1146
elif is_list_like (container ):
1147
- container = set ( self ._collapse_spaces (x ) for x in container )
1147
+ container = { self ._collapse_spaces (x ) for x in container }
1148
1148
if not any (item in container for item in items ):
1149
1149
msg = self ._get_string_msg (orig_container ,
1150
1150
seq2str (items , lastsep = ' or ' ),
@@ -1190,19 +1190,19 @@ def should_not_contain_any(self, container, *items, **configuration):
1190
1190
if is_string (container ):
1191
1191
container = container .casefold ()
1192
1192
elif is_list_like (container ):
1193
- container = set ( x .casefold () if is_string (x ) else x for x in container )
1193
+ container = { x .casefold () if is_string (x ) else x for x in container }
1194
1194
if strip_spaces :
1195
1195
items = [self ._strip_spaces (x , strip_spaces ) for x in items ]
1196
1196
if is_string (container ):
1197
1197
container = self ._strip_spaces (container , strip_spaces )
1198
1198
elif is_list_like (container ):
1199
- container = set ( self ._strip_spaces (x , strip_spaces ) for x in container )
1199
+ container = { self ._strip_spaces (x , strip_spaces ) for x in container }
1200
1200
if collapse_spaces :
1201
1201
items = [self ._collapse_spaces (x ) for x in items ]
1202
1202
if is_string (container ):
1203
1203
container = self ._collapse_spaces (container )
1204
1204
elif is_list_like (container ):
1205
- container = set ( self ._collapse_spaces (x ) for x in container )
1205
+ container = { self ._collapse_spaces (x ) for x in container }
1206
1206
if any (item in container for item in items ):
1207
1207
msg = self ._get_string_msg (orig_container ,
1208
1208
seq2str (items , lastsep = ' or ' ),
@@ -3150,7 +3150,6 @@ def comment(self, *messages):
3150
3150
contain non-existing variables. If you are interested about variable
3151
3151
values, you can use the `Log` or `Log Many` keywords.
3152
3152
"""
3153
- pass
3154
3153
3155
3154
def set_log_level (self , level ):
3156
3155
"""Sets the log threshold to the specified level and returns the old level.
@@ -4000,7 +3999,6 @@ class RobotNotRunningError(AttributeError):
4000
3999
May later be based directly on Exception, so new code should except
4001
4000
this exception explicitly.
4002
4001
"""
4003
- pass
4004
4002
4005
4003
4006
4004
def register_run_keyword (library , keyword , args_to_process = 0 , deprecation_warning = True ):
0 commit comments