Bug 1372697

Summary: [rh-python35] upstream test test_readline.py failure
Product: Red Hat Software Collections Reporter: Branislav Náter <bnater>
Component: pythonAssignee: Python Maintainers <python-maint>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-python35CC: cstratak, pviktori
Target Milestone: ---   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-07 14:43:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1191057    
Bug Blocks:    

Description Branislav Náter 2016-09-02 12:18:22 UTC
Description of problem:
upstream test test_readline.py is failing on rhel-6.

Version-Release number of selected component (if applicable):
rh-python35-python-3.5.1-10.el6

How reproducible:
run upstream test suite

Actual results:
:: [  BEGIN   ] :: Running test_readline.py in verbose mode :: actually running 'su pythontester -c 'python regrtest.py -l --verbose test_readline.py < empty''
== CPython 3.5.1 (default, Aug 5 2016, 13:29:23) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]
==   Linux-2.6.32-642.3.1.el6.x86_64-x86_64-with-redhat-6.8-Santiago little-endian
==   hash algorithm: siphash24 64bit
==   /tmp/test_python_16460
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_readline
testHistoryUpdates (test.test_readline.TestHistoryManipulation) ... ok
test_write_read_append (test.test_readline.TestHistoryManipulation) ... ok
test_init (test.test_readline.TestReadline) ... test test_readline failed
FAIL

======================================================================
FAIL: test_init (test.test_readline.TestReadline)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/rh/rh-python35/root/usr/lib64/python3.5/test/test_readline.py", line 97, in test_init
    self.assertEqual(stdout, b'')
AssertionError: b'\x1b[?1034h' != b''

----------------------------------------------------------------------
Ran 3 tests in 0.055s

FAILED (failures=1)
1 test failed:
    test_readline

Expected results:
Test is passing

Comment 1 Branislav Náter 2016-09-05 16:59:56 UTC
Test and works with newer _testing package_ readline-6.1-1.el6_8.

:: [  BEGIN   ] :: Running test_readline.py :: actually running 'su pythontester -c 'python regrtest.py -l test_readline.py < empty''
[1/1] test_readline
1 test OK.
:: [   PASS   ] :: Running test_readline.py (Expected 0, got 0)

Comment 6 Petr Viktorin 2017-12-07 14:43:12 UTC
Bug #1191057 was closed WONTFIX, so I'll close this bug as well.