Skip to content

Commit

Permalink
Merge pull request #388 from testing-cabal/ruff-0.5
Browse files Browse the repository at this point in the history
Upgrade ruff to 0.5.0
  • Loading branch information
jelmer authored Jul 1, 2024
2 parents cdb1f3e + d9e330b commit a9e185b
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 a9e185b

Please sign in to comment.