[pypy-commit] pypy default: Don't use leakfinder when running with -A
rlamy
pypy.commits at gmail.com
Mon Jun 6 12:39:14 EDT 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch:
Changeset: r84973:bd58f903f506
Date: 2016-06-06 16:24 +0100
http://bitbucket.org/pypy/pypy/changeset/bd58f903f506/
Log: Don't use leakfinder when running with -A
diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -23,11 +23,10 @@
def pytest_report_header():
return "pytest-%s from %s" % (pytest.__version__, pytest.__file__)
-def pytest_addhooks(pluginmanager):
- from rpython.conftest import LeakFinder
- pluginmanager.register(LeakFinder())
-
def pytest_configure(config):
+ if not config.option.runappdirect:
+ from rpython.conftest import LeakFinder
+ config.pluginmanager.register(LeakFinder())
global option
option = config.option
More information about the pypy-commit
mailing list