Skip to content

Commit

Permalink
TEST-modin-project#2297: address review comment
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 7, 2020
1 parent 1756bcc commit d537830
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def test_read_csv_squeeze(self, test_case):

str_single_element = "1"
str_single_col = "1\n2\n3\n"
str_four_cols = "1, 2, 3, 4\n" "5, 6, 7, 8\n" "9, 10, 11, 12\n"
str_four_cols = "1, 2, 3, 4\n5, 6, 7, 8\n9, 10, 11, 12\n"
case_to_data = {
"single_element": str_single_element,
"single_column": str_single_col,
Expand All @@ -750,7 +750,7 @@ def test_read_csv_squeeze(self, test_case):

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

# NA and Missing Data Handling tests
Expand Down Expand Up @@ -1048,7 +1048,9 @@ def test_read_csv_internal(
raise exceptions while Pandas raises - issue #2320"
)

# In this case raised TypeError: cannot use a string pattern on a bytes-like object
# In this case raised TypeError: cannot use a string pattern on a bytes-like object,
# so TypeError should be excluded from raising_exceptions list in order to check, that
# the same exceptions are raised by Pandas and Modin
case_with_TypeError_exc = (
engine == "python"
and delimiter == ","
Expand Down

0 comments on commit d537830

Please sign in to comment.