diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-01 09:24:52 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-01 09:24:52 -0500 |
commit | 82063173717a85580f1f4352ce1196cb3d41453a (patch) | |
tree | dfa8e8ac78e63da4f6fb4cc2302e1ee0f6fb298a | |
parent | 796ef4bde0b4544846737930bf051e164892b62f (diff) | |
download | python-setuptools-bitbucket-82063173717a85580f1f4352ce1196cb3d41453a.tar.gz |
Add test for regression on Python 3 when LANG=C and there is non-ascii in the metadata file before the version. Ref #469.
-rw-r--r-- | pkg_resources/tests/test_pkg_resources.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py index 0a03dd93..31eee635 100644 --- a/pkg_resources/tests/test_pkg_resources.py +++ b/pkg_resources/tests/test_pkg_resources.py @@ -1,3 +1,6 @@ +# coding: utf-8 +from __future__ import unicode_literals + import sys import tempfile import os @@ -144,7 +147,8 @@ class TestDeepVersionLookupDistutils(object): Create a foo package installed (distutils-style) to env.paths['lib'] as version. """ - attrs = dict(name='foo', version=version) + ld = "This package has unicode metadata! ❄" + attrs = dict(name='foo', version=version, long_description=ld) dist = distutils.dist.Distribution(attrs) iei_cmd = distutils.command.install_egg_info.install_egg_info(dist) iei_cmd.initialize_options() |