mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Specify the encoding of the setup.cfg in one packaging test (#12320)
This commit is contained in:
parent
bf94b0f943
commit
043f5ae697
1 changed files with 1 additions and 1 deletions
|
|
@ -496,7 +496,7 @@ class UtilTestCase(support.EnvironRestorer,
|
||||||
def test_cfg_to_args(self):
|
def test_cfg_to_args(self):
|
||||||
opts = {'description-file': 'README', 'extra-files': '',
|
opts = {'description-file': 'README', 'extra-files': '',
|
||||||
'setup-hooks': 'packaging.tests.test_config.version_hook'}
|
'setup-hooks': 'packaging.tests.test_config.version_hook'}
|
||||||
self.write_file('setup.cfg', SETUP_CFG % opts)
|
self.write_file('setup.cfg', SETUP_CFG % opts, encoding='utf-8')
|
||||||
self.write_file('README', 'loooong description')
|
self.write_file('README', 'loooong description')
|
||||||
|
|
||||||
args = cfg_to_args()
|
args = cfg_to_args()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue