From 92219e576bcb8d62e0d75e0bf8d10aad58320dde Mon Sep 17 00:00:00 2001 From: feuillemorte Date: Tue, 27 Feb 2018 20:00:46 +0300 Subject: [PATCH] #3260 Remove deprecation --- _pytest/config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/_pytest/config.py b/_pytest/config.py index c84bbe134..359cc4bc8 100644 --- a/_pytest/config.py +++ b/_pytest/config.py @@ -1328,14 +1328,10 @@ def determine_setup(inifile, args, warnfunc=None): if inifile: iniconfig = py.iniconfig.IniConfig(inifile) is_cfg_file = str(inifile).endswith('.cfg') - # TODO: [pytest] section in *.cfg files is depricated. Need refactoring. sections = ['tool:pytest', 'pytest'] if is_cfg_file else ['pytest'] for section in sections: try: inicfg = iniconfig[section] - if is_cfg_file and section == 'pytest' and warnfunc: - from _pytest.deprecated import SETUP_CFG_PYTEST - warnfunc('C1', SETUP_CFG_PYTEST.replace('setup.cfg', str(inifile))) break except KeyError: inicfg = None