From 1b7191f4f2cf32254ba4b62dca219de330ef2e43 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Sat, 28 Jan 2017 21:33:45 +0800 Subject: [PATCH] Skip unit tests for SSL + py3 When we request something from SSL wrapped app using py3 and we do not get answer at all. In case of unit tests we face test timeout. So, skip these tests until related bug is fixed. This also enables other test cases in this module. Related-Bug: #1482633 Partially-Implements: blueprint goal-python35 Change-Id: I4933e47b0759716f387ec26e3bd8a4e725eb4f91 --- nova/tests/unit/test_wsgi.py | 2 ++ tests-py3.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/tests/unit/test_wsgi.py b/nova/tests/unit/test_wsgi.py index a2d4c07a474c..c5ecbf7cb751 100644 --- a/nova/tests/unit/test_wsgi.py +++ b/nova/tests/unit/test_wsgi.py @@ -25,6 +25,7 @@ import eventlet.wsgi import mock from oslo_config import cfg import requests +import six import testtools import webob @@ -224,6 +225,7 @@ class TestWSGIServer(test.NoDBTestCase): server.stop() +@testtools.skipIf(six.PY3, "bug/1482633: test hangs on Python 3") class TestWSGIServerWithSSL(test.NoDBTestCase): """WSGI server with SSL tests.""" diff --git a/tests-py3.txt b/tests-py3.txt index deedd75ead78..faaa059b8e63 100644 --- a/tests-py3.txt +++ b/tests-py3.txt @@ -1,5 +1,3 @@ -nova.tests.unit.test_wsgi.TestWSGIServerWithSSL - ########################################################################## # NOTE(dims): The following tests randomly fail in the gate. Please be # careful before you re-enable them