aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2011-07-21 23:59:30 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2011-07-21 23:59:30 +0200
commitd67c022b8e8103ce61229b0f6b48ee71c10fe21b (patch)
tree3864387ff87d8aabc51735c58a899af61f5faf53 /pytest.py
parentinline the pytest coverage plugin, and autoload it in pypy/test_all.py (diff)
downloadpypy-d67c022b8e8103ce61229b0f6b48ee71c10fe21b.tar.gz
pypy-d67c022b8e8103ce61229b0f6b48ee71c10fe21b.tar.bz2
pypy-d67c022b8e8103ce61229b0f6b48ee71c10fe21b.zip
also use pytest_cov in the normal pytest script
Diffstat (limited to 'pytest.py')
-rwxr-xr-xpytest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index 4cb3338adb..56f33b5ed3 100755
--- a/pytest.py
+++ b/pytest.py
@@ -9,6 +9,8 @@ from _pytest import core as cmdline
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