[pypy-svn] pypy default: Fix running py.test in this directory.

arigo commits-noreply at bitbucket.org
Sat Mar 26 11:47:43 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r42963:771a50208bf8
Date: 2011-03-25 22:54 +0100
http://bitbucket.org/pypy/pypy/changeset/771a50208bf8/

Log:	Fix running py.test in this directory.

diff --git a/dotviewer/conftest.py b/dotviewer/conftest.py
--- a/dotviewer/conftest.py
+++ b/dotviewer/conftest.py
@@ -6,4 +6,6 @@
         dest="pygame", default=False, 
         help="allow interactive tests using Pygame")
 
-option = py.test.config.option
+def pytest_configure(config):
+    global option
+    option = config.option


More information about the Pypy-commit mailing list