[pypy-commit] pypy default: also use pytest_cov in the normal pytest script
RonnyPfannschmidt
noreply at buildbot.pypy.org
Fri Jul 22 00:24:52 CEST 2011
Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
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
More information about the pypy-commit
mailing list