Fix a small issue created in #1398

This commit is contained in:
Dave Halter
2019-09-21 23:29:07 +02:00
parent 527ef6fcdd
commit a6fcf779d4

View File

@@ -1,4 +1,4 @@
from os.path import join, sep as s from os.path import join, sep as s, dirname
import os import os
import sys import sys
from textwrap import dedent from textwrap import dedent
@@ -165,7 +165,7 @@ f2 = join(root_dir, 'test', 'example.py')
os_path = 'from os.path import *\n' os_path = 'from os.path import *\n'
# os.path.sep escaped # os.path.sep escaped
se = s * 2 if s == '\\' else s 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( @pytest.mark.parametrize(