Skip to content

Commit

Permalink
changed the type check in assert_frame_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Seher Karakuzu authored and Seher Karakuzu committed Mar 15, 2024
1 parent ac8a8ab commit 62eeab5
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions tiled/_tests/test_writing.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,22 +510,9 @@ def test_write_with_specified_mimetype(tree):
},
),
(
{
"C": pandas.array(["x", "y"], dtype="string[pyarrow]"),
"D": pandas.array(["a", "b"], dtype="string[pyarrow]"),
},
{
"C": pandas.array(["xx", "yy", "zz"], dtype="string[pyarrow]"),
"D": pandas.array(["aa", "bb", "cc"], dtype="string[pyarrow]"),
},
{
"C": pandas.array(
["x", "y", "xx", "yy", "zz"], dtype="string[pyarrow]"
),
"D": pandas.array(
["a", "b", "aa", "bb", "cc"], dtype="string[pyarrow]"
),
},
{"C": ["x", "y"], "D": ["a", "b"]},
{"C": ["xx", "yy", "zz"], "D": ["aa", "bb", "cc"]},
{"C": ["x", "y", "xx", "yy", "zz"], "D": ["a", "b", "aa", "bb", "cc"]},
),
],
)
Expand Down Expand Up @@ -559,4 +546,4 @@ def test_append_partition(

df3 = pandas.DataFrame(expected_file)

assert_frame_equal(x.read(), df3, check_dtype=True)
assert_frame_equal(x.read(), df3, check_dtype=False)

0 comments on commit 62eeab5

Please sign in to comment.