diff options
author | mathieui <mathieui@mathieui.net> | 2018-07-21 16:46:50 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-07-21 16:46:50 +0200 |
commit | a8fc35cf355cf61301dadaf3e92341bfbdbc6b1c (patch) | |
tree | 2d99f307a3971f8f7c02ff930bf2e210c1db7ef4 | |
parent | 79a4cc8937d318f55d87549a2d2e020cbb5f5920 (diff) | |
download | poezio-a8fc35cf355cf61301dadaf3e92341bfbdbc6b1c.tar.gz poezio-a8fc35cf355cf61301dadaf3e92341bfbdbc6b1c.tar.bz2 poezio-a8fc35cf355cf61301dadaf3e92341bfbdbc6b1c.tar.xz poezio-a8fc35cf355cf61301dadaf3e92341bfbdbc6b1c.zip |
Fix the config tests
-rw-r--r-- | test/test_config.py | 7 |
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) |