Skip to content

Commit

Permalink
bump ruff version, fix local obj test in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-mixas committed Sep 1, 2024
1 parent e124789 commit 8d3d157
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test = [
'pytest',
'pytest-cov',
'pytest-ruff',
'ruff==0.4.10',
'ruff==0.6.3',
]

[project.scripts]
Expand Down
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
pytest.register_assert_rewrite('tests.common')


@pytest.fixture()
@pytest.fixture
def content():
def _reader(filename):
with open(filename) as f:
Expand All @@ -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'
Expand All @@ -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(
Expand All @@ -41,7 +41,7 @@ def _path_resolver(filename):
return _path_resolver


@pytest.fixture()
@pytest.fixture
def stringio():
return StringIO()

Expand All @@ -51,6 +51,6 @@ def isatty(self):
return True


@pytest.fixture()
@pytest.fixture
def stringio_tty():
return _StringIOTTY()
2 changes: 1 addition & 1 deletion tests/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 8d3d157

Please sign in to comment.