# HG changeset patch # User Sietse Brouwer # Date 1590504499 -7200 # Tue May 26 16:48:19 2020 +0200 # Node ID 221fd35b6ce320bb41a66f2d00b4b0fcf74d3ab7 # Parent 0d3229120aff331970cba4591c1304f7fc59b394 Update/fix relative import syntax in unit tests diff --git a/tests/test_bookmark.py b/tests/test_bookmark.py --- a/tests/test_bookmark.py +++ b/tests/test_bookmark.py @@ -1,7 +1,7 @@ '''Test output of {bookmark}.''' from nose import * -from util import * +from .util import * @with_setup(setup_sandbox, teardown_sandbox) def test_bookmark(): diff --git a/tests/test_branch.py b/tests/test_branch.py --- a/tests/test_branch.py +++ b/tests/test_branch.py @@ -1,7 +1,7 @@ '''Test output of {branch}.''' from nose import * -from util import * +from .util import * @with_setup(setup_sandbox, teardown_sandbox) diff --git a/tests/test_hgrc.py b/tests/test_hgrc.py --- a/tests/test_hgrc.py +++ b/tests/test_hgrc.py @@ -1,7 +1,7 @@ '''Test evaluation of prompt template in HGRC.''' from nose import * -from util import * +from .util import * @with_setup(setup_sandbox, teardown_sandbox) diff --git a/tests/test_node.py b/tests/test_node.py --- a/tests/test_node.py +++ b/tests/test_node.py @@ -1,7 +1,7 @@ '''Test output of {node}.''' from nose import * -from util import * +from .util import * def _parent_node(): diff --git a/tests/test_none.py b/tests/test_none.py --- a/tests/test_none.py +++ b/tests/test_none.py @@ -1,7 +1,7 @@ '''Test output without keywords.''' from nose import * -from util import * +from .util import * @with_setup(setup_sandbox, teardown_sandbox) diff --git a/tests/test_rev.py b/tests/test_rev.py --- a/tests/test_rev.py +++ b/tests/test_rev.py @@ -1,7 +1,7 @@ '''Test output of {node}.''' from nose import * -from util import * +from .util import * def _parent_rev(): diff --git a/tests/test_tip.py b/tests/test_tip.py --- a/tests/test_tip.py +++ b/tests/test_tip.py @@ -1,7 +1,7 @@ '''Test output of {tip}.''' from nose import * -from util import * +from .util import * def _tip_rev(): diff --git a/tests/test_update.py b/tests/test_update.py --- a/tests/test_update.py +++ b/tests/test_update.py @@ -1,7 +1,7 @@ '''Test output of {update}.''' from nose import * -from util import * +from .util import * @with_setup(setup_sandbox, teardown_sandbox)