We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8201edb commit b272621Copy full SHA for b272621
pandas/tests/io/test_excel.py
@@ -2505,6 +2505,7 @@ class TestFSPath(object):
2505
2506
@pytest.mark.skipif(sys.version_info < (3, 6), reason='requires fspath')
2507
def test_excelfile_fspath(self):
2508
+ _skip_if_no_openpyxl
2509
with tm.ensure_clean('foo.xlsx') as path:
2510
df = DataFrame({"A": [1, 2]})
2511
df.to_excel(path)
@@ -2515,6 +2516,7 @@ def test_excelfile_fspath(self):
2515
2516
2517
@pytest.mark.xfail
2518
def test_excelwriter_fspath(self):
2519
2520
2521
writer = ExcelWriter(path)
2522
assert os.fspath(writer) == str(path)
0 commit comments