From: Éric Araujo Date: Sun, 12 Jun 2011 20:04:58 +0000 (+0200) Subject: Specify the encoding of the setup.cfg in one packaging test (#12320) X-Git-Tag: v3.3.0a1~2122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=043f5ae697859e21641419d6a3bdd208eb34d004;p=thirdparty%2FPython%2Fcpython.git Specify the encoding of the setup.cfg in one packaging test (#12320) --- diff --git a/Lib/packaging/tests/test_util.py b/Lib/packaging/tests/test_util.py index f657ab25fa2b..9b6498b91e08 100644 --- a/Lib/packaging/tests/test_util.py +++ b/Lib/packaging/tests/test_util.py @@ -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()