Skip to content

Commit f80555f

Browse files
committed
Fix some of failing tests
1 parent a91e186 commit f80555f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vm/src/stdlib/operator.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ mod _operator {
225225
.map(|v| {
226226
if !v.fast_isinstance(vm.ctx.types.int_type) {
227227
return Err(vm.new_type_error(format!(
228-
"'{}' type cannot be interpreted as an integer",
228+
"'{}' object cannot be interpreted as an integer",
229229
v.class().name()
230230
)));
231231
}
@@ -253,9 +253,10 @@ mod _operator {
253253
if !a.class().has_attr(identifier!(vm, __getitem__))
254254
|| a.fast_isinstance(vm.ctx.types.dict_type)
255255
{
256-
return Err(
257-
vm.new_type_error(format!("{} object can't be concatenated", a.class().name()))
258-
);
256+
return Err(vm.new_type_error(format!(
257+
"'{}' object can't be concatenated",
258+
a.class().name()
259+
)));
259260
}
260261
vm._iadd(&a, &b)
261262
}

0 commit comments

Comments
 (0)