2010-11-13 18:10:45 +08:00
|
|
|
"""
|
|
|
|
unit and functional testing with Python.
|
|
|
|
"""
|
2011-03-20 00:59:07 +08:00
|
|
|
__version__ = '2.0.3.dev3'
|
2010-11-13 18:10:45 +08:00
|
|
|
__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
|