From d447d0e103252103ef09b77116253d2950ae935d Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Thu, 20 Mar 2014 13:49:13 -0400 Subject: [PATCH] Disable XML tests on Py26 Unit testing on Py26 takes too long to run. The code paths are the same, so we'll temporarily skip tests is the class contains XML formating since duplicate full stack JSON tests are run. Change-Id: Ie8eddfe0b6af39f32380ce532e0c26acc0a6596d Related-Bug: 1295281 --- neutron/tests/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neutron/tests/base.py b/neutron/tests/base.py index ccdf0fc6b..a135010d1 100644 --- a/neutron/tests/base.py +++ b/neutron/tests/base.py @@ -20,6 +20,7 @@ import contextlib import logging import os +import sys import eventlet.timeout import fixtures @@ -117,6 +118,9 @@ class BaseTestCase(testtools.TestCase): 'neutron.common.exceptions.NeutronException.use_fatal_exceptions', fake_use_fatal_exceptions)) + if sys.version_info < (2, 7) and getattr(self, 'fmt', '') == 'xml': + raise self.skipException('XML Testing Skipped in Py26') + def config(self, **kw): """Override some configuration values. -- 2.45.2