Skip to content

Commit a762fc3

Browse files
Remove py2 and Windows checks.
Removed because python 2 is no longer supported, and this let us remove the checks for Windows too.
1 parent 52e1a50 commit a762fc3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pvlib/test/test_conftest.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import pytest
22

3-
from conftest import fail_on_pvlib_version, platform_is_windows, has_python2
3+
from conftest import fail_on_pvlib_version
44

55

6-
# allow xpass for python 2 on windows
7-
@pytest.mark.xfail(strict=(not (platform_is_windows and has_python2)),
8-
reason='fail_on_pvlib_version should cause test to fail')
96
@fail_on_pvlib_version('0.0')
107
def test_fail_on_pvlib_version():
118
pass
@@ -16,8 +13,6 @@ def test_fail_on_pvlib_version_pass():
1613
pass
1714

1815

19-
@pytest.mark.xfail(strict=(not (platform_is_windows and has_python2)),
20-
reason='ensure that the test is called')
2116
@fail_on_pvlib_version('100000.0')
2217
def test_fail_on_pvlib_version_fail_in_test():
2318
raise Exception

0 commit comments

Comments
 (0)