Skip to content

Commit 022a11f

Browse files
committed
addresses GH #21646
1 parent 2a7e1f2 commit 022a11f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/conftest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ def datapath(request):
153153
ValueError
154154
If the path doesn't exist and the --strict-data-files option is set.
155155
"""
156+
BASE_PATH = os.path.join(os.path.dirname(__file__), 'tests')
157+
156158
def deco(*args):
157-
path = os.path.join('pandas', 'tests', *args)
159+
path = os.path.join(BASE_PATH, *args)
158160
if not os.path.exists(path):
159161
if request.config.getoption("--strict-data-files"):
160162
msg = "Could not find file {} and --strict-data-files is set."

0 commit comments

Comments
 (0)