Skip to content

Commit 341d6d7

Browse files
DimitriPapadopouloseffigies
authored andcommitted
STY: Apply ruff/flake8-pytest-style rule PT022
PT022 No teardown in fixture `db`, use `return` instead of `yield`
1 parent e4a8d1c commit 341d6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_dft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def db(monkeypatch):
5858
and not modify the host filesystem."""
5959
database = dft._DB(fname=':memory:')
6060
monkeypatch.setattr(dft, 'DB', database)
61-
yield database
61+
return database
6262

6363

6464
def test_init(db):

0 commit comments

Comments
 (0)