Skip to content

Commit 16f22fd

Browse files
committed
TST: fix occastional failure in test_pytables because of existing node
1 parent 51cba53 commit 16f22fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/io/tests/test_pytables.py

+3
Original file line numberDiff line numberDiff line change
@@ -4337,16 +4337,19 @@ def test_categorical(self):
43374337
with ensure_clean_store(self.path) as store:
43384338

43394339
# basic
4340+
_maybe_remove(store, 's')
43404341
s = Series(Categorical(['a', 'b', 'b', 'a', 'a', 'c'], categories=['a','b','c','d'], ordered=False))
43414342
store.append('s', s, format='table')
43424343
result = store.select('s')
43434344
tm.assert_series_equal(s, result)
43444345

4346+
_maybe_remove(store, 's_ordered')
43454347
s = Series(Categorical(['a', 'b', 'b', 'a', 'a', 'c'], categories=['a','b','c','d'], ordered=True))
43464348
store.append('s_ordered', s, format='table')
43474349
result = store.select('s_ordered')
43484350
tm.assert_series_equal(s, result)
43494351

4352+
_maybe_remove(store, 'df')
43504353
df = DataFrame({"s":s, "vals":[1,2,3,4,5,6]})
43514354
store.append('df', df, format='table')
43524355
result = store.select('df')

0 commit comments

Comments
 (0)