Skip to content

Commit 72906a8

Browse files
committed
Use datapath() for specifying test file locations
1 parent 86fc3f6 commit 72906a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/io/test_stata.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,9 +2062,8 @@ def test_backward_compat_nodateconversion(version, datapath):
20622062
def test_backward_compat_nostring(version, datapath):
20632063
# The Stata data format prior to 105 did not support a date format
20642064
# so read the raw values for comparison
2065-
data_base = datapath("io", "data", "stata")
2066-
ref = os.path.join(data_base, "stata-compat-118.dta")
2067-
old = os.path.join(data_base, f"stata-compat-{version}.dta")
2065+
ref = datapath("io", "data", "stata", "stata-compat-118.dta")
2066+
old = datapath("io", "data", "stata", f"stata-compat-{version}.dta")
20682067
expected = read_stata(ref, convert_dates=False)
20692068
# The Stata data format prior to 103 did not support string data
20702069
expected = expected.drop(columns=["s10"])

0 commit comments

Comments
 (0)