Skip to content

Commit 112d126

Browse files
committed
Add failed test
1 parent 304a5f4 commit 112d126

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/io/tests/test_stata.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,14 @@ def test_drop_column(self):
780780
expected = expected[columns]
781781
dropped = read_stata(self.dta15_117, convert_dates=True,
782782
columns=columns)
783-
784783
tm.assert_frame_equal(expected, dropped)
784+
785+
columns = ['int_', 'long_', 'byte_']
786+
expected = expected[columns]
787+
reordered = read_stata(self.dta15_117, convert_dates=True,
788+
columns=columns)
789+
tm.assert_frame_equal(expected, reordered)
790+
785791
with tm.assertRaises(ValueError):
786792
columns = ['byte_', 'byte_']
787793
read_stata(self.dta15_117, convert_dates=True, columns=columns)

0 commit comments

Comments
 (0)