On 11. 01. 21 13:13, Miro Hrončok wrote:
Hello Siteshwar,

I see two Python packages that fail to test with Bash 5.1 due to \x1b[?2004l\r376\r or similar unexpectedly in captured stdout:

https://bugzilla.redhat.com/show_bug.cgi?id=1914782
https://bugzilla.redhat.com/show_bug.cgi?id=1914880

Is this anything you are aware of? What shall be done to fix this?

Thanks,

Actually, I see more:

https://koschei.fedoraproject.org/affected-by/bash?epoch1=0&version1=5.0.17&release1=3.fc34&epoch2=0&version2=5.1.0&release2=1.fc34&collection=f34

e.g. pytest:

        child.expect("Pdb")
>       assert "\r\n'i=0.'\r\n" in child.before.decode("utf8")
E assert "\r\n'i=0.'\r\n" in ") 'i=%i.' % i\r\n\x1b[?2004l\r'i=0.'\r\n\x1b[?2004h(" E + where ") 'i=%i.' % i\r\n\x1b[?2004l\r'i=0.'\r\n\x1b[?2004h(" = <built-in method decode of bytes object at 0x3ff4c3ff3f0>('utf8') E + where <built-in method decode of bytes object at 0x3ff4c3ff3f0> = b") 'i=%i.' % i\r\n\x1b[?2004l\r'i=0.'\r\n\x1b[?2004h(".decode E + where b") 'i=%i.' % i\r\n\x1b[?2004l\r'i=0.'\r\n\x1b[?2004h(" = <pexpect.pty_spawn.spawn object at 0x3ff4c3e1b80>.before
/builddir/build/BUILD/pytest-6.0.2/testing/test_debugging.py:492: AssertionError

E AssertionError: assert '\r\nENTERING RECURSIVE DEBUGGER\r\n' in '\r\n\x1b[?2004hdebug set_trace()\r\n\x1b[?2004l\rENTERING RECURSIVE DEBUGGER\r\n'

or python-pexpect:

>       assert res.strip() == '11'
E       AssertionError: assert '\x1b[?2004l\...\n\x1b[?2004h' == '11'
E         - 11
E         + [?2004l
E         + 11
E         + [?2004h

And more...

Also ccing devel list for help.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to