mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-108303: Move config parser data to Lib/test/configparserdata/
(gh-111879)
This commit is contained in:
parent
34a03e951b
commit
cc18b886a5
5 changed files with 12 additions and 12 deletions
|
@ -85,8 +85,8 @@ class IdleConfParserTest(unittest.TestCase):
|
|||
self.assertEqual(parser.sections(), [])
|
||||
|
||||
def test_load_file(self):
|
||||
# Borrow test/cfgparser.1 from test_configparser.
|
||||
config_path = findfile('cfgparser.1')
|
||||
# Borrow test/configdata/cfgparser.1 from test_configparser.
|
||||
config_path = findfile('cfgparser.1', subdir='configdata')
|
||||
parser = config.IdleConfParser(config_path)
|
||||
parser.Load()
|
||||
|
||||
|
@ -294,8 +294,8 @@ class IdleConfTest(unittest.TestCase):
|
|||
def test_load_cfg_files(self):
|
||||
conf = self.new_config(_utest=True)
|
||||
|
||||
# Borrow test/cfgparser.1 from test_configparser.
|
||||
config_path = findfile('cfgparser.1')
|
||||
# Borrow test/configdata/cfgparser.1 from test_configparser.
|
||||
config_path = findfile('cfgparser.1', subdir='configdata')
|
||||
conf.defaultCfg['foo'] = config.IdleConfParser(config_path)
|
||||
conf.userCfg['foo'] = config.IdleUserConfParser(config_path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue