mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
use cwd_at to avoid test failures if called from different places
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import readline
|
import readline
|
||||||
|
|
||||||
from jedi import utils
|
from jedi import utils
|
||||||
from .helpers import TestCase
|
from .helpers import TestCase, cwd_at
|
||||||
|
|
||||||
|
|
||||||
class TestSetupReadline(TestCase):
|
class TestSetupReadline(TestCase):
|
||||||
@@ -71,6 +71,7 @@ class TestSetupReadline(TestCase):
|
|||||||
# items as well as items that are not only available on linux.
|
# items as well as items that are not only available on linux.
|
||||||
assert len(set(self.completions(s)).symmetric_difference(goal)) < 20
|
assert len(set(self.completions(s)).symmetric_difference(goal)) < 20
|
||||||
|
|
||||||
|
@cwd_at('test')
|
||||||
def test_local_import(self):
|
def test_local_import(self):
|
||||||
s = 'import test_utils'
|
s = 'import test_utils'
|
||||||
assert self.completions(s) == [s]
|
assert self.completions(s) == [s]
|
||||||
|
|||||||
Reference in New Issue
Block a user