Further test simplifications

This commit is contained in:
Matthias
2023-11-05 16:15:36 +01:00
parent eb409de916
commit 7bed7801cc
4 changed files with 29 additions and 32 deletions

View File

@@ -75,11 +75,11 @@ def test_set_loggers_syslog():
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
def test_set_loggers_Filehandler(tmpdir):
def test_set_loggers_Filehandler(tmp_path):
logger = logging.getLogger()
orig_handlers = logger.handlers
logger.handlers = []
logfile = Path(tmpdir) / 'ft_logfile.log'
logfile = tmp_path / 'ft_logfile.log'
config = {'verbosity': 2,
'logfile': str(logfile),
}