skip test due to no journald installed

This commit is contained in:
Matthias
2019-11-23 14:25:32 +01:00
parent 1242263d25
commit c7c7a1c2aa
2 changed files with 2 additions and 2 deletions

View File

@@ -605,6 +605,7 @@ def test_set_loggers() -> None:
assert logging.getLogger('telegram').level is logging.INFO
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
def test_set_loggers_syslog(mocker):
logger = logging.getLogger()
orig_handlers = logger.handlers
@@ -622,7 +623,7 @@ def test_set_loggers_syslog(mocker):
logger.handlers = orig_handlers
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
@pytest.mark.skip(reason="systemd is not installed on every system, so we're not testing this.")
def test_set_loggers_journald(mocker):
logger = logging.getLogger()
orig_handlers = logger.handlers