From 1aaff839bbb57cfcd89f357258f763419bcea285 Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Sat, 14 Nov 2015 10:44:52 +0100
Subject: [PATCH] Disable py.test --doctest-modules.

As we introduced an py.test autouse fixture, we cannot currently also
run doctest-modules due to a bug in py.test (2.8.1, 2.8.2):

   https://github.com/pytest-dev/pytest/issues/1057

Looks like a fix is planned for 2.8.3 release. Until then we have to
disable doctests in modules.
---
 setup.cfg | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index 7496401..60377b1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,8 +4,9 @@ dev = develop easy_install diceware[tests]
 docs = develop easy_install diceware[docs]
 
 [pytest]
-addopts = --doctest-modules
-          --doctest-glob='*.rst'
+# py.test 2.8.2 breaks with --doctest-modules
+# See https://github.com/pytest-dev/pytest/issues/1057
+addopts = --doctest-glob='*.rst'
           diceware tests docs README.rst
 
 [bdist_wheel]
-- 
GitLab