Author: Ronny Pfannschmidt <[email protected]>
Branch: 
Changeset: r45847:ff4a90f9be99
Date: 2011-07-21 23:59 +0200
http://bitbucket.org/pypy/pypy/changeset/ff4a90f9be99/

Log:    also use pytest_cov in the normal pytest script

diff --git a/pytest.py b/pytest.py
--- a/pytest.py
+++ b/pytest.py
@@ -9,6 +9,8 @@
 from _pytest import __version__
 
 if __name__ == '__main__': # if run as a script or by 'python -m pytest'
-    raise SystemExit(main())
+    #XXX: sync to upstream later
+    import pytest_cov
+    raise SystemExit(main(plugins=[pytest_cov]))
 else:
     _preloadplugins() # to populate pytest.* namespace so help(pytest) works
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to