Giving-up on python3 testing.

This commit is contained in:
Thomas Goirand
2015-02-08 12:21:53 +01:00
parent b841eeaee6
commit c2314b0704
2 changed files with 1 additions and 15 deletions

View File

@@ -28,17 +28,3 @@ Last-Update: 2015-02-08
import six
from oslo_concurrency._i18n import _
--- python-oslo.concurrency-1.4.1.orig/tests/test_warning.py
+++ python-oslo.concurrency-1.4.1/tests/test_warning.py
@@ -35,7 +35,10 @@ class DeprecationWarningTest(test_base.BaseTestCase):
with warnings.catch_warnings(record=True) as warning_msgs:
warnings.resetwarnings()
warnings.simplefilter('always', DeprecationWarning)
- import oslo.concurrency
+ try:
+ import oslo.concurrency
+ except:
+ pass
# Use a separate function to get the stack level correct
# so we know the message points back to this file. This

2
debian/rules vendored
View File

@@ -27,7 +27,7 @@ override_dh_install:
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
echo "===> Running tests: WARNING: Not running Python3 tests because of namespaces!"
set -e && for i in $(PYTHONS) $(PYTHON3S) ; do \
set -e && for i in $(PYTHONS) ; do \
PYMAJOR=`echo $$i | cut -d'.' -f1` ; \
echo "===> Testing with python$$i (python$$PYMAJOR)" ; \
rm -rf .testrepository ; \