Skip to content

Commit 0fa7102

Browse files
Construct expected dataframe and assert outside of with statement
1 parent 70c7ab1 commit 0fa7102

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/tests/io/test_pytables.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4560,11 +4560,12 @@ def test_legacy_table_read_py2(self, datapath):
45604560
'legacy_table_py2.h5'),
45614561
mode='r') as store:
45624562
result = store.select('table')
4563-
expected = pd.DataFrame({
4564-
"a": ["a", "b"],
4565-
"b": [2, 3]
4566-
})
4567-
assert_frame_equal(expected, result)
4563+
4564+
expected = pd.DataFrame({
4565+
"a": ["a", "b"],
4566+
"b": [2, 3]
4567+
})
4568+
assert_frame_equal(expected, result)
45684569

45694570
def test_legacy_table_read(self, datapath):
45704571
# legacy table types

0 commit comments

Comments
 (0)