Skip to content

Commit b272621

Browse files
committed
Skip with on openpyxl
1 parent 8201edb commit b272621

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/io/test_excel.py

+2
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,7 @@ class TestFSPath(object):
25052505

25062506
@pytest.mark.skipif(sys.version_info < (3, 6), reason='requires fspath')
25072507
def test_excelfile_fspath(self):
2508+
_skip_if_no_openpyxl
25082509
with tm.ensure_clean('foo.xlsx') as path:
25092510
df = DataFrame({"A": [1, 2]})
25102511
df.to_excel(path)
@@ -2515,6 +2516,7 @@ def test_excelfile_fspath(self):
25152516
@pytest.mark.skipif(sys.version_info < (3, 6), reason='requires fspath')
25162517
@pytest.mark.xfail
25172518
def test_excelwriter_fspath(self):
2519+
_skip_if_no_openpyxl
25182520
with tm.ensure_clean('foo.xlsx') as path:
25192521
writer = ExcelWriter(path)
25202522
assert os.fspath(writer) == str(path)

0 commit comments

Comments
 (0)