We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973a2d8 commit 52d4266Copy full SHA for 52d4266
pandas/tests/io/parser/common.py
@@ -750,6 +750,16 @@ def test_utf16_example(self):
750
result = self.read_table(buf, encoding='utf-16')
751
assert len(result) == 50
752
753
+ def test_compressed_utf16_example(self):
754
+ # GH18071
755
+ path = tm.get_data_path('utf16_ex.zip')
756
+ expected_path = tm.get_data_path('utf16_ex.txt')
757
+
758
+ result = self.read_table(path, encoding='utf-16', compression='zip')
759
+ expected = self.read_table(expected_path, encoding='utf-16')
760
761
+ tm.assert_frame_equal(result, expected)
762
763
def test_unicode_encoding(self):
764
pth = tm.get_data_path('unicode_series.csv')
765
pandas/tests/io/parser/data/utf16_ex.zip
1.64 KB
0 commit comments