~ibmcharmers/charms/xenial/ibm-cinder-storwize-svc/trunk

« back to all changes in this revision

Viewing changes to .tox/py35/lib/python3.5/site-packages/pytest.py

  • Committer: Ankammarao
  • Date: 2017-03-06 05:11:42 UTC
  • Revision ID: achittet@in.ibm.com-20170306051142-dpg27z4es1k56hfn
Marked tests folder executable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# PYTHON_ARGCOMPLETE_OK
 
2
"""
 
3
pytest: unit and functional testing with Python.
 
4
"""
 
5
__all__ = [
 
6
    'main',
 
7
    'UsageError',
 
8
    'cmdline',
 
9
    'hookspec',
 
10
    'hookimpl',
 
11
    '__version__',
 
12
]
 
13
 
 
14
if __name__ == '__main__': # if run as a script or by 'python -m pytest'
 
15
    # we trigger the below "else" condition by the following import
 
16
    import pytest
 
17
    raise SystemExit(pytest.main())
 
18
 
 
19
# else we are imported
 
20
 
 
21
from _pytest.config import (
 
22
    main, UsageError, _preloadplugins, cmdline,
 
23
    hookspec, hookimpl
 
24
)
 
25
from _pytest import __version__
 
26
 
 
27
_preloadplugins() # to populate pytest.* namespace so help(pytest) works
 
28