Skip to content

Commit 164eb2b

Browse files
committed
TST: couple small test fixes
1 parent 02b57a8 commit 164eb2b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def load(cls, path):
3636
def _get_axis_number(cls, axis):
3737
axis = cls._AXIS_ALIASES.get(axis, axis)
3838

39-
if isinstance(axis, int):
39+
if com.is_integer(axis):
4040
if axis in cls._AXIS_NAMES:
4141
return axis
4242
else:

pandas/io/tests/test_pytables.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def setUp(self):
3737

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

4245
def test_factory_fun(self):
4346
try:

0 commit comments

Comments
 (0)