diff options
| author | Igor Gnatenko <ignatenkobrain@fedoraproject.org> | 2015-10-06 13:13:38 +0200 |
|---|---|---|
| committer | Igor Gnatenko <ignatenkobrain@fedoraproject.org> | 2015-10-06 13:13:38 +0200 |
| commit | 6f0453560271cf860aebb6483a04d46079f7af3f (patch) | |
| tree | 5dbb16a4cab83e9d2dc0fffa930a09aa041d517a /python-pexpect.spec | |
| parent | 3c7f8c5955bfd8407674283ab3332c1f95063db4 (diff) | |
| download | python-pexpect-6f0453560271cf860aebb6483a04d46079f7af3f.tar.gz python-pexpect-6f0453560271cf860aebb6483a04d46079f7af3f.tar.xz python-pexpect-6f0453560271cf860aebb6483a04d46079f7af3f.zip | |
fix testsuite
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Diffstat (limited to 'python-pexpect.spec')
| -rw-r--r-- | python-pexpect.spec | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python-pexpect.spec b/python-pexpect.spec index 841c2bb..124f0ef 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -11,7 +11,12 @@ Source1: coveragerc Source2: https://raw.githubusercontent.com/pexpect/pexpect/master/tools/display-sighandlers.py Source3: https://raw.githubusercontent.com/pexpect/pexpect/master/tools/display-terminalinfo.py +# https://github.com/pexpect/pexpect/pull/274 +Patch0: 0001-Encode-command-line-args-for-unicode-mode-spawn.patch +Patch1: pexpect-4.0-disable-some-tests.patch + BuildArch: noarch +BuildRequires: git-core Provides: pexpect = %{version}-%{release} Obsoletes: pexpect <= 2.3-20 @@ -75,7 +80,7 @@ compiled. It should work on any platform that supports the standard Python pty module. %prep -%autosetup -n %{modname}-%{version} +%autosetup -n %{modname}-%{version} -S git sed -i -e 1i"# -*- encoding: utf-8 -*-" setup.py cp -p %{SOURCE1} .coveragerc rm -rf tools/ @@ -109,6 +114,8 @@ pushd %{py3dir} popd %check +export PYTHONIOENCODING=UTF-8 +export LC_ALL="en_US.UTF-8" ./tools/display-sighandlers.py ./tools/display-terminalinfo.py |
