summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-10-25 12:23:29 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-10-25 12:23:29 -0400
commit4be2fc75bf405ae5e2cac3d8df99e88b46392744 (patch)
treee1a5a0b7fb84b023253ccec38956dea8e25a27cf
parent173c2a89b20a48152eca6136debcf3d43e67d75c (diff)
downloadpython-systemd-4be2fc75bf405ae5e2cac3d8df99e88b46392744.tar.gz
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.
-rw-r--r--systemd/journal.py3
1 files changed, 1 insertions, 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.