From a6fcf779d41862de50d25cbe964c64831c7d64bc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 21 Sep 2019 23:29:07 +0200 Subject: [PATCH] Fix a small issue created in #1398 --- test/test_api/test_completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_api/test_completion.py b/test/test_api/test_completion.py index ff42c053..1d3d092b 100644 --- a/test/test_api/test_completion.py +++ b/test/test_api/test_completion.py @@ -1,4 +1,4 @@ -from os.path import join, sep as s +from os.path import join, sep as s, dirname import os import sys from textwrap import dedent @@ -165,7 +165,7 @@ f2 = join(root_dir, 'test', 'example.py') os_path = 'from os.path import *\n' # os.path.sep escaped se = s * 2 if s == '\\' else s -current_dirname = os.path.basename(os.path.abspath(os.path.curdir)) +current_dirname = os.path.basename(dirname(dirname(dirname(__file__)))) @pytest.mark.parametrize(