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

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

Commit 7a6fa82335ba4d4d3024522e6736566224eaae5b in qpid-dispatch's branch 
refs/heads/master from Kenneth Giusti
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=7a6fa82 ]

DISPATCH-1048: correct import for urllib in python3, use unicode.  This closes 
#330


> system_tests_http fail when run under python3 environment
> ---------------------------------------------------------
>
>                 Key: DISPATCH-1048
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1048
>             Project: Qpid Dispatch
>          Issue Type: Bug
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>            Priority: Major
>         Attachments: Dockerfile-ctest
>
>
> Can reproduce with attached docker file
> -----
>       Start 46: system_tests_http
> 46: Test command: /usr/bin/python 
> "/main/qpid-dispatch-master/BUILD/tests/run.py" "-x" "unit2" "-v" 
> "system_tests_http"
> 46: Test timeout computed to be: 1500
> 46: system_tests_http (unittest2.loader._FailedTest) ... ERROR
> 46: 
> 46: ======================================================================
> 46: ERROR: system_tests_http (unittest2.loader._FailedTest)
> 46: ----------------------------------------------------------------------
> 46: Traceback (most recent call last):
> 46: ImportError: Failed to import test module: system_tests_http
> 46: Traceback (most recent call last):
> 46:   File "/usr/lib/python3.6/site-packages/unittest2/loader.py", line 172, 
> in loadTestsFromName
> 46:     module = __import__(module_name)
> 46:   File "/main/qpid-dispatch-master/tests/system_tests_http.py", line 25, 
> in <module>
> 46:     import os, threading, sys, urllib2
> 46: ModuleNotFoundError: No module named 'urllib2'
> 46: 
> 46: 
> 46: ----------------------------------------------------------------------
> 46: Ran 1 test in 0.000s
> 46: 
> 46: FAILED (errors=1)
> 46/47 Test #46: system_tests_http .................................***Failed  
>   0.21 sec



--
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