Skip to content

Commit fc58d2f

Browse files
committed
TST: mark all excel tests as slow
1 parent 65f0463 commit fc58d2f

9 files changed

+23
-2
lines changed

pandas/tests/io/excel/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Package for testing excel-related functionality.
3+
4+
All tests are marked as slow via ``pytestmark = pytest.mark.slow``
5+
at the top of each test module.
6+
"""
7+
18
import pytest
29

310
pytestmark = [

pandas/tests/io/excel/test_odf.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import pandas as pd
77
import pandas._testing as tm
88

9+
pytestmark = pytest.mark.slow
10+
911
pytest.importorskip("odf")
1012

1113

pandas/tests/io/excel/test_openpyxl.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from pandas.io.excel import ExcelWriter, _OpenpyxlWriter
99

10+
pytestmark = pytest.mark.slow
11+
1012
openpyxl = pytest.importorskip("openpyxl")
1113

1214
pytestmark = pytest.mark.parametrize("ext", [".xlsx"])

pandas/tests/io/excel/test_readers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from pandas import DataFrame, Index, MultiIndex, Series
1313
import pandas._testing as tm
1414

15+
pytestmark = pytest.mark.slow
16+
1517
read_ext_params = [".xls", ".xlsx", ".xlsm", ".xlsb", ".ods"]
1618
engine_params = [
1719
# Add any engines to test here
@@ -636,9 +638,7 @@ def test_read_from_s3_url(self, read_ext, s3_resource, s3so):
636638
local_table = pd.read_excel("test1" + read_ext)
637639
tm.assert_frame_equal(url_table, local_table)
638640

639-
@pytest.mark.slow
640641
def test_read_from_file_url(self, read_ext, datapath):
641-
642642
# FILE
643643
localtable = os.path.join(datapath("io", "data", "excel"), "test1" + read_ext)
644644
local_table = pd.read_excel(localtable)

pandas/tests/io/excel/test_style.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from pandas.io.excel import ExcelWriter
88
from pandas.io.formats.excel import ExcelFormatter
99

10+
pytestmark = pytest.mark.slow
11+
1012

1113
@pytest.mark.parametrize(
1214
"engine",

pandas/tests/io/excel/test_writers.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
register_writer,
2222
)
2323

24+
pytestmark = pytest.mark.slow
25+
2426

2527
@pytest.fixture
2628
def path(ext):

pandas/tests/io/excel/test_xlrd.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from pandas.io.excel import ExcelFile
99

10+
pytestmark = pytest.mark.slow
11+
1012
xlrd = pytest.importorskip("xlrd")
1113
xlwt = pytest.importorskip("xlwt")
1214

pandas/tests/io/excel/test_xlsxwriter.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from pandas.io.excel import ExcelWriter
99

10+
pytestmark = pytest.mark.slow
11+
1012
xlsxwriter = pytest.importorskip("xlsxwriter")
1113

1214
pytestmark = pytest.mark.parametrize("ext", [".xlsx"])

pandas/tests/io/excel/test_xlwt.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
from pandas.io.excel import ExcelWriter, _XlwtWriter
88

9+
pytestmark = pytest.mark.slow
10+
911
xlwt = pytest.importorskip("xlwt")
1012

1113
pytestmark = pytest.mark.parametrize("ext,", [".xls"])

0 commit comments

Comments
 (0)