Skip to content

Commit 0af7ffa

Browse files
committed
add @fail_on_pvlib_version("0.12") decorator
1 parent b1d6793 commit 0af7ffa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pvlib/tests/test_irradiance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
requires_numba
1919
)
2020

21-
from pvlib._deprecation import pvlibDeprecationWarning
21+
from pvlib._deprecation import pvlibDeprecationWarning, fail_on_pvlib_version
2222

2323
# fixtures create realistic test input data
2424
# test input data generated at Location(32.2, -111, 'US/Arizona', 700)
@@ -1094,6 +1094,7 @@ def test_dirindex(times):
10941094
equal_nan=True)
10951095

10961096

1097+
@fail_on_pvlib_version("0.12")
10971098
def test_dirindex_ghi_clearsky_deprecation():
10981099
with pytest.warns(pvlibDeprecationWarning, match='ghi_clear'):
10991100
times = pd.DatetimeIndex(['2014-06-24T18-1200'])

0 commit comments

Comments
 (0)