diff --git a/pyproject.toml b/pyproject.toml index 0407e4b..ddbe670 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ test = [ 'pytest', 'pytest-cov', 'pytest-ruff', - 'ruff==0.4.10', + 'ruff==0.6.3', ] [project.scripts] diff --git a/tests/conftest.py b/tests/conftest.py index 2a9070d..a67803d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,7 +7,7 @@ pytest.register_assert_rewrite('tests.common') -@pytest.fixture() +@pytest.fixture def content(): def _reader(filename): with open(filename) as f: @@ -16,7 +16,7 @@ def _reader(filename): return _reader -@pytest.fixture() +@pytest.fixture def expected(request): filename = os.path.splitext(request.module.__file__)[0] filename += f'.{request.function.__name__}.exp' @@ -25,7 +25,7 @@ def expected(request): return f.read() -@pytest.fixture() +@pytest.fixture def rpath(request): def _path_resolver(filename): path = os.path.join( @@ -41,7 +41,7 @@ def _path_resolver(filename): return _path_resolver -@pytest.fixture() +@pytest.fixture def stringio(): return StringIO() @@ -51,6 +51,6 @@ def isatty(self): return True -@pytest.fixture() +@pytest.fixture def stringio_tty(): return _StringIOTTY() diff --git a/tests/test_diff.py b/tests/test_diff.py index a28bb91..a8211bc 100644 --- a/tests/test_diff.py +++ b/tests/test_diff.py @@ -42,7 +42,7 @@ def local_function_cant_be_pickled(): a = [local_function_cant_be_pickled] b = [] - with pytest.raises(Exception, match="Can't pickle"): + with pytest.raises(Exception, match="Can't"): Differ().diff(a, b)