From 7d1288c00b2c73a70b97dc7f58703e32eaea324e Mon Sep 17 00:00:00 2001 From: Phillip Cloud Date: Mon, 2 Jun 2014 10:51:48 -0400 Subject: [PATCH] BUG/TST: should skip openpyxl before testing version compat --- pandas/io/tests/test_excel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/tests/test_excel.py b/pandas/io/tests/test_excel.py index 5928e99ed055c..b45897dff9aa2 100644 --- a/pandas/io/tests/test_excel.py +++ b/pandas/io/tests/test_excel.py @@ -1217,9 +1217,9 @@ def test_ExcelWriter_dispatch(self): import xlsxwriter writer_klass = _XlsxWriter except ImportError: + _skip_if_no_openpyxl() if not openpyxl_compat.is_compat(): raise nose.SkipTest('incompatible openpyxl version') - _skip_if_no_openpyxl() writer_klass = _OpenpyxlWriter with ensure_clean('.xlsx') as path: