From 4be2fc75bf405ae5e2cac3d8df99e88b46392744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 25 Oct 2015 12:23:29 -0400 Subject: Do not assume specific output from the journal While we *usually* get those messages from udev, in many tests environments this will not be true, so just do not try to check the output at all. --- systemd/journal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/systemd/journal.py b/systemd/journal.py index fd9b4fd..b319a8a 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -118,10 +118,9 @@ class Reader(_Reader): >>> j.this_boot() >>> j.log_level(journal.LOG_INFO) >>> j.add_match(_SYSTEMD_UNIT="systemd-udevd.service") - >>> for entry in j: + >>> for entry in j: # doctest: +SKIP ... print(entry['MESSAGE']) starting version ... - ... See systemd.journal-fields(7) for more info on typical fields found in the journal. -- cgit v1.2.1