Skip to content

Commit b8ebaf9

Browse files
committed
Fixed multi-with statement that's not supported in py26
1 parent fb002d3 commit b8ebaf9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/tests/test_pytables.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4636,10 +4636,10 @@ def column_index_data_frame(index):
46364636

46374637
for index in types_should_fail:
46384638
df = column_index_data_frame(index)
4639-
with ensure_clean_path(self.path) as path, \
4640-
self.assertRaises(ValueError,
4641-
msg="cannot have non-object label DataIndexableCol"):
4642-
df.to_hdf(path, 'df', format='table', data_columns=True)
4639+
with ensure_clean_path(self.path) as path:
4640+
with self.assertRaises(ValueError,
4641+
msg="cannot have non-object label DataIndexableCol"):
4642+
df.to_hdf(path, 'df', format='table', data_columns=True)
46434643

46444644
for index in types_should_run:
46454645
df = DataFrame(np.random.randn(10, 2), columns=index(2))

0 commit comments

Comments
 (0)