From a8fc35cf355cf61301dadaf3e92341bfbdbc6b1c Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 21 Jul 2018 16:46:50 +0200 Subject: Fix the config tests --- test/test_config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') 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) -- cgit v1.2.3