Specify the encoding of the setup.cfg in one packaging test (#12320)

This commit is contained in:
Éric Araujo 2011-06-12 22:04:58 +02:00
parent bf94b0f943
commit 043f5ae697
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ class UtilTestCase(support.EnvironRestorer,
def test_cfg_to_args(self):
opts = {'description-file': 'README', 'extra-files': '',
'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')
args = cfg_to_args()