[
https://issues.apache.org/jira/browse/DISPATCH-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521292#comment-16521292
]
ASF GitHub Bot commented on DISPATCH-1048:
------------------------------------------
GitHub user kgiusti opened a pull request:
https://github.com/apache/qpid-dispatch/pull/330
DISPATCH-1048: correct import for urllib in python3, use unicode
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kgiusti/dispatch DISPATCH-1048
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/qpid-dispatch/pull/330.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #330
----
commit ef029e713f671869a5e5313d7d4c137a002dd518
Author: Kenneth Giusti <kgiusti@...>
Date: 2018-06-23T21:58:08Z
DISPATCH-1048: correct import for urllib in python3, use unicode
----
> 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]