[ 
https://issues.apache.org/jira/browse/DISPATCH-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16836425#comment-16836425
 ] 

ASF subversion and git services commented on DISPATCH-1333:
-----------------------------------------------------------

Commit 7b3a8e25b0fbebe5e10228a8b9de9c7c01c545d2 in qpid-dispatch's branch 
refs/heads/master from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=7b3a8e2 ]

DISPATCH-1333: fix for python3 and object containing unicode check mark

Casting as str() gets the test to pass but clobbers the unicode aspect.
This test passes when 'out' contains 4kb of data and when 'out' is empty.


> Console test fails printing to file with python 3
> -------------------------------------------------
>
>                 Key: DISPATCH-1333
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1333
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 1.7.0
>         Environment: Fedora 29, Python 3, proton and dispatch master branches
>            Reporter: Chuck Rolke
>            Assignee: Chuck Rolke
>            Priority: Major
>         Attachments: console-test.patch, run_console_test.out.txt
>
>
> {code:java}
> test 53
>     Start 53: system_tests_console
> 53: Test command: /bin/python 
> "/home/chug/git/qpid-dispatch/build/tests/run.py" "unit2" "-v" 
> "system_tests_console"
> 53: Test timeout computed to be: 1500
> 53: test_console (system_tests_console.ConsoleTest) ... ERROR
> 53: 
> 53: ======================================================================
> 53: ERROR: test_console (system_tests_console.ConsoleTest)
> 53: ----------------------------------------------------------------------
> 53: Traceback (most recent call last):
> 53:   File "/home/chug/git/qpid-dispatch/tests/system_test.py", line 706, in 
> wrap
> 53:     return f(*args, **kwargs)
> 53:   File "/home/chug/git/qpid-dispatch/tests/system_tests_console.py", line 
> 132, in test_console
> 53:     self.run_console_test()
> 53:   File "/home/chug/git/qpid-dispatch/tests/system_tests_console.py", line 
> 116, in run_console_test
> 53:     popenfile.writelines(out)
> 53: TypeError: write() argument must be str, not int
> 53: 
> 53: ----------------------------------------------------------------------
> 53: Ran 1 test in 0.959s
> 53: 
> 53: FAILED (errors=1)
> 1/1 Test #53: system_tests_console .............***Failed    1.63 sec
> 0% tests passed, 1 tests failed out of 1
> {code}
>  The test passes with the attached patch.
> The content of the failed printout is attached.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to