Skip to content

Commit 490d471

Browse files
committed
Refactor: test code.
1 parent 25b5e6a commit 490d471

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ def test_jinja(self):
3838

3939
@pytest.mark.parametrize("config_file", (DATA_DIR / "config").iterdir())
4040
def test_config_file(self, config_file):
41-
load(config_file.open())
41+
with open(config_file) as file:
42+
load(file)

0 commit comments

Comments
 (0)