Skip to content

Commit c03eb07

Browse files
committed
TST: randomize HDF5 file name to tease out #2645 issue
1 parent 164eb2b commit c03eb07

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/io/tests/test_pytables.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,15 @@
2929

3030

3131
class TestHDFStore(unittest.TestCase):
32-
path = '__test__.h5'
3332
scratchpath = '__scratch__.h5'
3433

3534
def setUp(self):
35+
self.path = '__%s__.h5' % tm.rands(10)
3636
self.store = HDFStore(self.path)
3737

3838
def tearDown(self):
3939
self.store.close()
40-
try:
41-
os.remove(self.path)
42-
except os.error:
43-
pass
40+
os.remove(self.path)
4441

4542
def test_factory_fun(self):
4643
try:
@@ -575,7 +572,7 @@ def check_col(key, name, size):
575572
expected = df_dc[(df_dc.B > 0) & (df_dc.C > 0) & (
576573
df_dc.string == 'foo')]
577574
tm.assert_frame_equal(result, expected)
578-
575+
579576
def test_create_table_index(self):
580577

581578
def col(t, column):

0 commit comments

Comments
 (0)