Skip to content

Commit be7a538

Browse files
committed
use pytest match instead of warn_txt
1 parent 2abcd4e commit be7a538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvlib/tests/test_pvsystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,6 @@ def test_deprecated_09(cec_inverter_parameters, adr_inverter_parameters):
13111311
with pytest.warns(pvlibDeprecationWarning):
13121312
pvsystem.pvwatts_ac(90, 100, 0.95)
13131313
# for missing temperature_model_parameters
1314-
warn_txt = "Reverting to deprecated default: SAPM cell temperature"
1315-
with pytest.warns(pvlibDeprecationWarning, warn_txt=warn_txt):
1314+
match = "Reverting to deprecated default: SAPM cell temperature"
1315+
with pytest.warns(pvlibDeprecationWarning, match=match):
13161316
pvsystem.PVSystem()

0 commit comments

Comments
 (0)