From 3cb605bf3cad72e692c154d41fb1e24b41033f2c Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Wed, 23 Jul 2014 17:07:12 +0100 Subject: Use nosetests and absolute imports --- packages/debian/rules | 2 +- tests/unittests/test_builtin_handlers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/debian/rules b/packages/debian/rules index f2516c93..6bf78377 100755 --- a/packages/debian/rules +++ b/packages/debian/rules @@ -2,7 +2,7 @@ INIT_SYSTEM ?= upstart,systemd export PYBUILD_INSTALL_ARGS=--init-system=$(INIT_SYSTEM) -export PYBUILD_TEST_ARGS=--test-nose +export PYBUILD_TEST_NOSE=1 %: dh $@ --with python2,systemd --buildsystem pybuild diff --git a/tests/unittests/test_builtin_handlers.py b/tests/unittests/test_builtin_handlers.py index b387f13b..af7f442e 100644 --- a/tests/unittests/test_builtin_handlers.py +++ b/tests/unittests/test_builtin_handlers.py @@ -2,7 +2,7 @@ import os -from tests.unittests import helpers as test_helpers +from . import helpers as test_helpers from cloudinit import handlers from cloudinit import helpers -- cgit v1.2.3