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

@ -13,7 +13,6 @@ pytest-asyncio==0.10.0
pytest-cov==2.8.1
pytest-mock==1.11.1
pytest-random-order==1.0.4
systemd==0.16.1; sys_platform != 'win32'
# Convert jupyter notebooks to markdown documents
nbconvert==5.6.0

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