Skip to content

Commit 6edef7f

Browse files
authored
Address iotools test failures (#1219)
1 parent 40ba4bd commit 6edef7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pvlib/tests/iotools/test_pvgis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ def _compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,
159159
for meta_value in meta:
160160
if not meta_value:
161161
continue
162-
# don't check end year because it changes every year
163-
if meta_value[:-4] == 'PVGIS (c) European Communities, 2001-':
162+
# this copyright text tends to change (copyright year range increments
163+
# annually, e.g.), so just check the beginning of it:
164+
if meta_value.startswith('PVGIS (c) European'):
164165
continue
165166
assert meta_value in csv_meta
166167

0 commit comments

Comments
 (0)