Description of problem:
Package python-pexpect fails to build from source in Fedora rawhide.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
koji build --scratch f34 python-pexpect-4.8.0-5.fc34.src.rpm
This package is tracked by Koschei. See:
_________________________ REPLWrapTestCase.test_python _________________________
self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_python>
if platform.python_implementation() == 'PyPy':
p = replwrap.python()
res = p.run_command('4+7')
> assert res.strip() == '11'
E AssertionError: assert '\x1b[?2004l\...\n\x1b[?2004h' == '11'
E - 11
E + [?2004l
E + 11
E + [?2004h
Upstream issue: https://github.com/pexpect/pexpect/issues/669
(I could not add the link to the Bugzilla field, because there is some error in Jira synchronization.)
FYI Python had a similar issue with readline which injected bytes like ".[?1034h": https://bugs.python.org/issue19884. The workaround was to set TERM=xterm-256color environment variable.
I tried running the checks after updating the test command to "TERM=xterm-256color TRAVIS=true py.test-3 --verbose"
Saw the env value set in the checks when I ran mock to build the package.
Thx for the suggestion Victor.
I added the temporary workaround:
echo "set enable-bracketed-paste off" > .inputrc
and pushed it up so the tests would be passing again.
The build failed: https://koji.fedoraproject.org/koji/taskinfo?taskID=60043613
I tried to reproduce the failure in a scratch build and it succeeded: https://koji.fedoraproject.org/koji/taskinfo?taskID=60044790
The build failure was not the bracketed paste error at first glance.
I'll poke a bit more and see what I can figure out.