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 | dfbc96168d8b921bd6b02fe7aeceeeb930f68cfe (patch) | |
tree | b7b189ec5e57fa718d3af27f9148c8e23ff38eb9 /pkg_resources/tests/test_pkg_resources.py | |
parent | 7a37ebfae2843651e41d481794d19adff2eb110d (diff) | |
download | python-setuptools-git-dfbc96168d8b921bd6b02fe7aeceeeb930f68cfe.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.
Diffstat (limited to 'pkg_resources/tests/test_pkg_resources.py')
-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() |