Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 9, 2023
1 parent 2c295d5 commit 998b6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_weak_callable.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def __setitem__(self, *_: Any) -> Any:
t = T()
cb = weak_callback(setattr, t, "x")
m = str(EmitLoopError(cb, (2,), RuntimeError("test")))
assert "an error occurred in callback \"setattr" in m
assert 'an error occurred in callback "setattr' in m

cb = weak_callback(t.__setitem__, "x")
m = str(EmitLoopError(cb, (2,), RuntimeError("test")))
assert '.T.__setitem__' in m
assert ".T.__setitem__" in m

0 comments on commit 998b6ce

Please sign in to comment.