Skip to content

Commit 4be2fc7

Browse files
committed
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.
1 parent 173c2a8 commit 4be2fc7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

systemd/journal.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,9 @@ class Reader(_Reader):
118118
>>> j.this_boot()
119119
>>> j.log_level(journal.LOG_INFO)
120120
>>> j.add_match(_SYSTEMD_UNIT="systemd-udevd.service")
121-
>>> for entry in j:
121+
>>> for entry in j: # doctest: +SKIP
122122
... print(entry['MESSAGE'])
123123
starting version ...
124-
...
125124
126125
See systemd.journal-fields(7) for more info on typical fields
127126
found in the journal.

0 commit comments

Comments
 (0)