diff options
| author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-12-16 21:05:38 -0500 |
|---|---|---|
| committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-12 12:26:51 -0400 |
| commit | 5aab3fc3b41ca06e66463f66ed9cc936a03a18fd (patch) | |
| tree | 2db6fca65738888b6e652125c5e943b3bc27f6c4 /docs | |
| parent | 8921c79fb98e5e04c0e2f00813e9d8e015e4206e (diff) | |
| download | python-systemd-5aab3fc3b41ca06e66463f66ed9cc936a03a18fd.tar.gz | |
tests: move login tests from doctest to separate file
This way we can skip ENOENT (which happens in containers).
While at it, let's extend the tests a bit, so that we at least
call all functions and check the type of the return value.
Also, drop '.nspawn' from the machine name, nspawn doesn't
use that suffix any more.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/login.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/login.rst b/docs/login.rst index 2ee807c..23204e0 100644 --- a/docs/login.rst +++ b/docs/login.rst @@ -17,12 +17,12 @@ external event loop: >>> import select >>> from systemd import login - >>> m = login.Monitor("machine") + >>> m = login.Monitor("machine") # doctest: +SKIP >>> p = select.poll() - >>> p.register(m, m.get_events()) + >>> p.register(m, m.get_events()) # doctest: +SKIP >>> login.machine_names() # doctest: +SKIP [] >>> p.poll() # doctest: +SKIP [(3, 1)] >>> login.machine_names() # doctest: +SKIP - ['fedora-19.nspawn'] + ['fedora-25'] |
