Skip to content

Commit 5a73ba8

Browse files
authored
fix pvgis test (#1121)
1 parent 926d2f9 commit 5a73ba8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/sphinx/source/whatsnew/v0.8.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Testing
4242
* Add airspeed velocity performance testing configuration and a few benchmarks.
4343
(:issue:`419`, :pull:`1049`, :pull:`1059`)
4444
* Add Python 3.9 CI configurations. (:issue:`1102`, :pull:`1112`)
45+
* Update ``test_pvgis.py`` to be more flexible about the PVGIS copyright notice
46+
(:pull:`1121`)
4547

4648
Documentation
4749
~~~~~~~~~~~~~

pvlib/tests/iotools/test_pvgis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ 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-
if meta_value == 'PVGIS (c) European Communities, 2001-2020':
162+
# don't check end year because it changes every year
163+
if meta_value[:-4] == 'PVGIS (c) European Communities, 2001-':
163164
continue
164165
assert meta_value in csv_meta
165166

0 commit comments

Comments
 (0)