summaryrefslogtreecommitdiff
path: root/pytest.py
blob: 8cc9ec5fa06138e9f8f6d345bd7f0354fa528a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
unit and functional testing with Python.

see http://pytest.org for documentation and details

(c) Holger Krekel and others, 2004-2010
"""
__version__ = '2.0.0.dev31'
__all__ = ['main']

from _pytest.core import main, UsageError, _preloadplugins
from _pytest import core as cmdline

if __name__ == '__main__': # if run as a script or by 'python -m pytest'
    raise SystemExit(main())
else:
    _preloadplugins() # to populate pytest.* namespace so help(pytest) works