mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Use Script everywhere where cwd_at is used, otherwise Python 2.7 is annoying
This commit is contained in:
@@ -15,7 +15,7 @@ def check_module_test(Script, code):
|
||||
|
||||
|
||||
@cwd_at('test/test_evaluate/buildout_project/src/proj_name')
|
||||
def test_parent_dir_with_file():
|
||||
def test_parent_dir_with_file(Script):
|
||||
parent = _get_parent_dir_with_file(
|
||||
os.path.abspath(os.curdir), 'buildout.cfg')
|
||||
assert parent is not None
|
||||
@@ -23,7 +23,7 @@ def test_parent_dir_with_file():
|
||||
|
||||
|
||||
@cwd_at('test/test_evaluate/buildout_project/src/proj_name')
|
||||
def test_buildout_detection():
|
||||
def test_buildout_detection(Script):
|
||||
scripts = _get_buildout_script_paths(os.path.abspath('./module_name.py'))
|
||||
assert len(scripts) == 1
|
||||
curdir = os.path.abspath(os.curdir)
|
||||
|
||||
Reference in New Issue
Block a user