Files
pytest2/pytest.py
holger krekel bc42cf8ffb add a way to mark hooks as "tryfirst" or "trylast" to influence its position in a hook chain.
Use 'tryfirst' for capturing hooks so they can start capturing as early as possible,
including when conftests add output in runtest_setup hooks.
2010-11-21 23:17:59 +01:00

18 lines
472 B
Python

"""
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.dev32'
__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