Author: Ronan Lamy <[email protected]>
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
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to