Files
pytest2/pytest.py
2010-12-07 12:34:18 +01:00

14 lines
377 B
Python

"""
unit and functional testing with Python.
"""
__version__ = '2.0.1.dev5'
__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