Skip to content

Commit c99d9cd

Browse files
committed
TST: when xlwt is not installed skip test needing it.
1 parent 34a0646 commit c99d9cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/test_frame.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,6 +3493,11 @@ def test_to_excel_multiindex(self):
34933493
os.remove(path)
34943494

34953495
def test_to_excel_float_format(self):
3496+
try:
3497+
import xlwt
3498+
except ImportError:
3499+
raise nose.SkipTest
3500+
34963501
for ext in ['xls', 'xlsx']:
34973502
filename = '__tmp__.' + ext
34983503
df = DataFrame([[0.123456, 0.234567, 0.567567],

0 commit comments

Comments
 (0)