summaryrefslogtreecommitdiff
path: root/test/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_config.py')
-rw-r--r--test/test_config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_config.py b/test/test_config.py
index d2f952de..9b93096e 100644
--- a/test/test_config.py
+++ b/test/test_config.py
@@ -2,17 +2,18 @@
Test the config module
"""
-import tempfile
-import pytest
import os
+import tempfile
+from pathlib import Path
+import pytest
from poezio import config
@pytest.yield_fixture(scope="module")
def config_obj():
file_ = tempfile.NamedTemporaryFile(delete=False)
- conf = config.Config(file_name=file_.name)
+ conf = config.Config(file_name=Path(file_.name))
yield conf
del conf
os.unlink(file_.name)