Skip to content

Commit

Permalink
Upgrade ruff to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Jul 1, 2024
1 parent 00a60b3 commit d9e330b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ __version__ = {version_tuple!r}
[project.optional-dependencies]
test = ["testscenarios", "testresources"]
twisted = ["Twisted", "fixtures"]
dev = ["ruff==0.4.10"]
dev = ["ruff==0.5.0"]
2 changes: 1 addition & 1 deletion testtools/matchers/_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, exception, value_re=None):
)

def match(self, other):
if type(other) != tuple:
if not isinstance(other, tuple):
return Mismatch("%r is not an exc_info tuple" % other)
expected_class = self.expected
if self._is_instance:
Expand Down

0 comments on commit d9e330b

Please sign in to comment.