Skip to content

Commit

Permalink
fix path format on windows for test case for ThreeET_Eyetracking
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuowenWang0000 committed Dec 21, 2023
1 parent e881f9b commit d159079
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ class ThreeET_EyetrackingTestCase(dataset_utils.DatasetTestCase):
def inject_fake_data(self, tmpdir):
testfolder = os.path.join(tmpdir, "ThreeET_Eyetracking")
os.makedirs(testfolder, exist_ok=True)
os.makedirs(testfolder + "/data", exist_ok=True)
os.makedirs(testfolder + "/labels", exist_ok=True)
os.makedirs(os.path.join(testfolder, "data"), exist_ok=True)
os.makedirs(os.path.join(testfolder, "labels"), exist_ok=True)
# write one line of file name into train_files.txt under testfolder
os.system("echo 'testcase' > " + testfolder + "/train_files.txt")
train_test_file_path = os.path.join(testfolder, "train_files.txt")
os.system("echo 'testcase' > " + train_test_file_path)
filename = "testcase"

# download test h5 file
Expand Down

0 comments on commit d159079

Please sign in to comment.