Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2021
1 parent 06280ac commit 8e0de5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ibis/backends/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@ def pytest_pyfunc_call(pyfuncitem):
# nothing has marked the failure as an expected one
raise e
elif len(markers) == 1:
pytest.xfail(reason='{}: {}'.format(type(backend).__name__, e))
pytest.xfail(reason=f'{type(backend).__name__}: {e}')
if len(markers) != 1:
(marker,) = markers
if not isinstance(backend, BackendTest):
pytest.fail("Backend has type {!r}".format(type(backend).__name__))
pytest.fail(
f"Backend has type {type(backend).__name__!r}"
)
else:
msg = "More than one xfail_unsupported marker found on test {}"
pytest.fail(msg.format(pyfuncitem))
Expand Down

0 comments on commit 8e0de5f

Please sign in to comment.