Skip to content

Commit a5f989f

Browse files
committed
nose.SkipTest -> pytest.skip
1 parent b478029 commit a5f989f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_bug_fixes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
from pyexcel_xls.xlsr import xldate_to_python_date
1515
from pyexcel_xls.xlsw import XLSWriter as Writer
1616

17-
from nose import SkipTest
1817
from nose.tools import eq_, raises
18+
import pytest
1919

2020
IN_TRAVIS = "TRAVIS" in os.environ
2121

@@ -90,15 +90,15 @@ def test_issue_18_encoding_override_isnt_passed(fake_open):
9090

9191
def test_issue_20():
9292
if not IN_TRAVIS:
93-
raise SkipTest()
93+
pytest.skip("Must be in CI for this test")
9494
pe.get_book(
9595
url="https://github.com/pyexcel/pyexcel-xls/raw/master/tests/fixtures/file_with_an_empty_sheet.xls" # noqa: E501
9696
)
9797

9898

9999
def test_issue_151():
100100
if XLRD_VERSION_2_OR_ABOVE:
101-
raise SkipTest()
101+
pytest.skip("XLRD<2 required for this test")
102102
s = pe.get_sheet(
103103
file_name=get_fixture("pyexcel_issue_151.xlsx"),
104104
skip_hidden_row_and_column=False,

0 commit comments

Comments
 (0)