You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2019/05/09 14:22:47 UTC

[qpid-dispatch] branch master updated: DISPATCH-1333: fix for python3 and object containing unicode check mark

This is an automated email from the ASF dual-hosted git repository.

chug pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b3a8e2  DISPATCH-1333: fix for python3 and object containing unicode check mark
7b3a8e2 is described below

commit 7b3a8e25b0fbebe5e10228a8b9de9c7c01c545d2
Author: Chuck Rolke <ch...@apache.org>
AuthorDate: Thu May 9 09:57:49 2019 -0400

    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.
---
 tests/system_tests_console.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/system_tests_console.py b/tests/system_tests_console.py
index 39f0888..2c6c7ef 100644
--- a/tests/system_tests_console.py
+++ b/tests/system_tests_console.py
@@ -113,7 +113,7 @@ class ConsoleTest(system_test.TestCase):
         with open('run_console_test.out', 'w') as popenfile:
             popenfile.write('returncode was %s\n' % p.returncode)
             popenfile.write('out was:\n')
-            popenfile.writelines(out)
+            popenfile.writelines(str(out))
 
         # if we created the node_modules dir, remove it
         if not node_modules:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org