GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

pytest.py 1.12 KB
Newer Older
1 2
"""
unit and functional testing with Python.
3
(pypy version of startup script)
holger krekel's avatar
holger krekel committed
4
see http://pytest.org for details.
5
"""
6
__version__ = '2.0.3.dev1' # base pytest version
7 8 9 10 11
__all__ = ['main']

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

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# This pytest.py script is located in the pypy source tree
# which has a copy of pytest and py within its source tree.
# If the environment also has an installed version of pytest/py
# we are bound to get warnings so we disable them.
# XXX eventually pytest and py should not be inlined shipped
# with the pypy source code but become a requirement for installation.

import warnings
warnings.filterwarnings("ignore",
    "Module py was already imported", category=UserWarning)
warnings.filterwarnings("ignore",
    "Module _pytest was already imported",
    category=UserWarning)
warnings.filterwarnings("ignore",
    "Module pytest was already imported",
    category=UserWarning)

29 30 31 32
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