Repository: qpid-dispatch Updated Branches: refs/heads/master 22202be22 -> 5a72e38da
DISPATCH-765 - Partial fix. Fixed system_tests_http to skip certain tests based on Python version Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/5a72e38d Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/5a72e38d Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/5a72e38d Branch: refs/heads/master Commit: 5a72e38da793bbd026d01687ab052db88e9ff286 Parents: 22202be Author: Ganesh Murthy <gmur...@redhat.com> Authored: Fri May 5 15:13:50 2017 -0400 Committer: Ganesh Murthy <gmur...@redhat.com> Committed: Fri May 5 15:13:50 2017 -0400 ---------------------------------------------------------------------- tests/system_tests_http.py | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/5a72e38d/tests/system_tests_http.py ---------------------------------------------------------------------- diff --git a/tests/system_tests_http.py b/tests/system_tests_http.py index 7244697..5450097 100644 --- a/tests/system_tests_http.py +++ b/tests/system_tests_http.py @@ -61,6 +61,10 @@ class RouterTestHttp(TestCase): self.assertEqual(1, r.wait()) def test_http_get(self): + + if not sys.version_info >= (2, 9): + return + config = Qdrouterd.Config([ ('router', {'id': 'QDR.HTTP'}), ('listener', {'port': self.get_port(), 'httpRoot': os.path.dirname(__file__)}), @@ -93,6 +97,9 @@ class RouterTestHttp(TestCase): self.assertRaises(urllib2.URLError, urllib2.urlopen, "https://localhost:%d/nosuch" % r.ports[0]) def test_https_get(self): + if not sys.version_info >= (2, 9): + return + def listener(**kwargs): args = dict(kwargs) args.update({'port': self.get_port(), 'httpRoot': os.path.dirname(__file__)}) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org