]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Specify the encoding of the setup.cfg in one packaging test (#12320)
authorÉric Araujo <merwok@netwok.org>
Sun, 12 Jun 2011 20:04:58 +0000 (22:04 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 12 Jun 2011 20:04:58 +0000 (22:04 +0200)
Lib/packaging/tests/test_util.py

index f657ab25fa2bf805d90f43bbbc21d47bfdfd5a90..9b6498b91e0827b247093daf88372ec30d15eaec 100644 (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()