From af7089b8ca7c485eb7571eb5606269f287d1b6af Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 17 Aug 2013 23:03:32 +0430 Subject: [PATCH] use cwd_at to avoid test failures if called from different places --- test/test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_utils.py b/test/test_utils.py index 4b62ca17..14e9d4f6 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,7 +1,7 @@ import readline from jedi import utils -from .helpers import TestCase +from .helpers import TestCase, cwd_at class TestSetupReadline(TestCase): @@ -71,6 +71,7 @@ class TestSetupReadline(TestCase): # items as well as items that are not only available on linux. assert len(set(self.completions(s)).symmetric_difference(goal)) < 20 + @cwd_at('test') def test_local_import(self): s = 'import test_utils' assert self.completions(s) == [s]