From dfbc96168d8b921bd6b02fe7aeceeeb930f68cfe Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 1 Dec 2015 09:24:52 -0500 Subject: Add test for regression on Python 3 when LANG=C and there is non-ascii in the metadata file before the version. Ref #469. --- pkg_resources/tests/test_pkg_resources.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1