Skip to content

Commit

Permalink
TEST-modin-project#2290: correct get_unique_filename usage
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Myskov <alexander.myskov@intel.com>
  • Loading branch information
amyskov committed Dec 1, 2020
1 parent 861b64d commit 3f33825
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def test_read_csv_delimiters(
"decimal": decimal,
"thousands": thousands,
}
unique_filename = get_unique_filename("test_read_csv_delimiter", kwargs)
unique_filename = get_unique_filename()
make_csv_file(
filename=unique_filename,
delimiter=delimiter,
Expand Down Expand Up @@ -569,7 +569,7 @@ def test_read_csv_col_handling(
"skip_blank_lines": skip_blank_lines,
}

unique_name = get_unique_filename("test_read_csv_col_handling", kwargs)
unique_name = get_unique_filename()
make_csv_file(
filename=unique_name,
add_blank_lines=True,
Expand Down Expand Up @@ -615,7 +615,7 @@ def test_read_csv_parsing_1(
"skipfooter": skipfooter,
}

unique_name = get_unique_filename("test_read_csv_parsing", kwargs)
unique_name = get_unique_filename()
make_csv_file(
filename=unique_name,
)
Expand Down Expand Up @@ -665,7 +665,7 @@ def test_read_csv_parsing_2(
"names": names,
}

unique_name = get_unique_filename("test_read_csv_parsing", kwargs)
unique_name = get_unique_filename()
make_csv_file(
filename=unique_name,
additional_col_values=["Yes", "true", "No", "false"]
Expand All @@ -683,7 +683,7 @@ def test_read_csv_parsing_2(
)

def test_read_csv_skipinitialspace(self, make_csv_file):
unique_filename = get_unique_filename("test_read_csv_skipinitialspace")
unique_filename = get_unique_filename()
str_initial_spaces = (
"col1,col2,col3,col4\n"
"five, six, seven, eight\n"
Expand All @@ -698,7 +698,7 @@ def test_read_csv_skipinitialspace(self, make_csv_file):
"test_case", ["single_element", "single_column", "multiple_columns"]
)
def test_read_csv_squeeze(self, test_case):
unique_filename = get_unique_filename("test_read_csv_squeeze")
unique_filename = get_unique_filename()

str_single_element = "1"
str_single_col = "1\n2\n3\n"
Expand All @@ -715,7 +715,7 @@ def test_read_csv_squeeze(self, test_case):
)

def test_read_csv_mangle_dupe_cols(self):
unique_filename = get_unique_filename("test_read_csv_mangle_dupe_cols")
unique_filename = get_unique_filename()
str_non_unique_cols = "col,col,col,col\n" "5, 6, 7, 8\n" "9, 10, 11, 12\n"
eval_io_from_str(str_non_unique_cols, unique_filename, mangle_dupe_cols=True)

Expand Down Expand Up @@ -775,7 +775,7 @@ def test_read_csv_datetime(
"cache_dates": cache_dates,
}

unique_name = get_unique_filename("test_read_csv_datetime", kwargs)
unique_name = get_unique_filename()
make_csv_file(
filename=unique_name,
)
Expand Down
2 changes: 1 addition & 1 deletion modin/pandas/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def generate_none_dfs():


def get_unique_filename(
test_name: str,
test_name: str = "test",
kwargs: dict = {},
extension: str = "csv",
data_dir: str = IO_OPS_DATA_DIR,
Expand Down

0 comments on commit 3f33825

Please sign in to comment.