Skip to content

Commit

Permalink
TEST-modin-project#2295: Apply suggestion from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anatoly Myachev <45976948+anmyachev@users.noreply.github.com>
Signed-off-by: Alexander Myskov <alexander.myskov@intel.com>
  • Loading branch information
amyskov and anmyachev committed Dec 3, 2020
1 parent 9e00350 commit 2f06e39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
NROWS = DATASET_SIZE_DICT.get(TestDatasetSize.get(), DATASET_SIZE_DICT["Small"])

# Files compression to extension mapping
comp_to_ext = {"gzip": "gz", "bz2": "bz2", "xz": "xz", "zip": "zip"}
COMP_TO_EXT = {"gzip": "gz", "bz2": "bz2", "xz": "xz", "zip": "zip"}

if not os.path.exists(IO_OPS_DATA_DIR):
os.mkdir(IO_OPS_DATA_DIR)
Expand Down Expand Up @@ -239,7 +239,7 @@ def _csv_file_maker(
lambda x: f"{x:,f}".replace(",", thousands_separator)
)
filename = (
f"{filename}.{comp_to_ext[compression]}"
f"{filename}.{COMP_TO_EXT[compression]}"
if compression != "infer"
else filename
)
Expand Down Expand Up @@ -882,7 +882,7 @@ def test_read_csv_compression(self, make_csv_file, compression, encoding, engine
filename=unique_filename, encoding=encoding, compression=compression
)
compressed_file_path = (
f"{unique_filename}.{comp_to_ext[compression]}"
f"{unique_filename}.{COMP_TO_EXT[compression]}"
if compression != "infer"
else unique_filename
)
Expand Down

0 comments on commit 2f06e39

Please sign in to comment.