Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit ef3ab65

Browse files
committed
fix flake
1 parent 547df7b commit ef3ab65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/datasets/test_iwslt2017.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _get_mock_dataset(root_dir, split, src, tgt, valid_set, test_set):
7777

7878
base_dir = os.path.join(root_dir, DATASET_NAME)
7979
temp_dataset_dir = os.path.join(base_dir, 'temp_dataset_dir')
80-
outer_temp_dataset_dir = os.path.join(temp_dataset_dir, f"texts/DeEnItNlRo/DeEnItNlRo")
80+
outer_temp_dataset_dir = os.path.join(temp_dataset_dir, "texts/DeEnItNlRo/DeEnItNlRo")
8181
inner_temp_dataset_dir = os.path.join(outer_temp_dataset_dir, "DeEnItNlRo-DeEnItNlRo")
8282

8383
os.makedirs(outer_temp_dataset_dir, exist_ok=True)
@@ -106,12 +106,12 @@ def _get_mock_dataset(root_dir, split, src, tgt, valid_set, test_set):
106106
f.write(file_contents)
107107

108108
inner_compressed_dataset_path = os.path.join(
109-
outer_temp_dataset_dir, f"DeEnItNlRo-DeEnItNlRo.tgz"
109+
outer_temp_dataset_dir, "DeEnItNlRo-DeEnItNlRo.tgz"
110110
)
111111

112112
# create tar file from dataset folder
113113
with tarfile.open(inner_compressed_dataset_path, "w:gz") as tar:
114-
tar.add(inner_temp_dataset_dir, arcname=f"DeEnItNlRo-DeEnItNlRo")
114+
tar.add(inner_temp_dataset_dir, arcname="DeEnItNlRo-DeEnItNlRo")
115115

116116
# this is necessary so that the outer tarball only includes the inner tarball
117117
shutil.rmtree(inner_temp_dataset_dir)

0 commit comments

Comments
 (0)