Files
firefox/third_party/python/pytest/_pytest/deprecated.py
T
Andrew Halberstadt e01e38e459 Bug 1382362 - Update pytest to v3.1.3 and py to v1.4.34, r=davehunt
This patch was generated by something similar to:

$ cd third_party/python
$ hg rm pytest/* py/*
$ pip wheel pytest
$ unzip pytest.whl
$ unzip py.whl
$ hg add pytest/* py/*

MozReview-Commit-ID: 3LKVrbKfMgK
2017-07-19 16:50:57 -04:00

25 lines
1.0 KiB
Python

"""
This module contains deprecation messages and bits of code used elsewhere in the codebase
that is planned to be removed in the next pytest release.
Keeping it in a central location makes it easy to track what is deprecated and should
be removed when the time comes.
"""
from __future__ import absolute_import, division, print_function
MAIN_STR_ARGS = 'passing a string to pytest.main() is deprecated, ' \
'pass a list of arguments instead.'
YIELD_TESTS = 'yield tests are deprecated, and scheduled to be removed in pytest 4.0'
FUNCARG_PREFIX = (
'{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated '
'and scheduled to be removed in pytest 4.0. '
'Please remove the prefix and use the @pytest.fixture decorator instead.')
SETUP_CFG_PYTEST = '[pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.'
GETFUNCARGVALUE = "use of getfuncargvalue is deprecated, use getfixturevalue"
RESULT_LOG = '--result-log is deprecated and scheduled for removal in pytest 4.0'