Commit b4724ffe authored by Jason R. Coombs's avatar Jason R. Coombs

Try setting LC_CTYPE also

parent 2e46cd7f
......@@ -8,7 +8,7 @@ python:
- pypy
env:
- ""
- LC_ALL=C
- LC_ALL=C LC_CTYPE=C
script:
# avoid VersionConflict when newer version is required
- pip install -U pytest
......
# -*- coding: utf-8 -*-
"""sdist tests"""
import locale
import os
import shutil
import sys
......@@ -9,14 +8,12 @@ import tempfile
import unicodedata
import contextlib
import pytest
import pkg_resources
from setuptools.compat import StringIO, unicode, PY3, PY2
from setuptools.command.sdist import sdist
from setuptools.command.egg_info import manifest_maker
from setuptools.dist import Distribution
from setuptools.tests import fail_on_ascii, is_ascii
from setuptools.tests import fail_on_ascii
SETUP_ATTRS = {
......@@ -149,10 +146,9 @@ class TestSdistTest:
assert 'setup.py' not in manifest, manifest
assert 'setup.cfg' not in manifest, manifest
@pytest.mark.xfail(is_ascii, reason="Test fails in this locale")
@fail_on_ascii
def test_manifest_is_written_with_utf8_encoding(self):
# Test for #303.
assert not is_ascii
dist = Distribution(SETUP_ATTRS)
dist.script_name = 'setup.py'
mm = manifest_maker(dist)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment