From d9e330b0e1e074ce4b0a086709d657a28a8f2010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 1 Jul 2024 12:16:47 +0000 Subject: [PATCH] Upgrade ruff to 0.5.0 --- pyproject.toml | 2 +- testtools/matchers/_exception.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a1052945..29a257b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/testtools/matchers/_exception.py b/testtools/matchers/_exception.py index a07eecd4..535c7629 100644 --- a/testtools/matchers/_exception.py +++ b/testtools/matchers/_exception.py @@ -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: