diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-05 12:48:07 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-05 13:09:43 +0200 |
commit | cc5f218a5082bd8a52f80d1bedad7bd4f78bca5e (patch) | |
tree | cee941712c9daf9f7d44b2e31acd99861a654696 /pytest.ini | |
parent | a93828172f8f62b0bd2f1363c0932a5853ce7a3f (diff) | |
download | python-systemd-cc5f218a5082bd8a52f80d1bedad7bd4f78bca5e.tar.gz |
tests: enable doctests in the sources
Unfortunately the "standard" way to access the names in the
defined module does not work. I find it nicer to explicitly import,
e.g. from systemd import journal, because then the examples
correspond more closely to what a user would use. The only
exception is made for JournalHandler, because journal.JournalHandler
is a tad to long.
Diffstat (limited to 'pytest.ini')
-rw-r--r-- | pytest.ini | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..df3eb51 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = --doctest-modules |