Skip to content

Commit

Permalink
fix pvgis test (pvlib#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
kandersolar authored Jan 4, 2021
1 parent 926d2f9 commit 5a73ba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.8.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Testing
* Add airspeed velocity performance testing configuration and a few benchmarks.
(:issue:`419`, :pull:`1049`, :pull:`1059`)
* Add Python 3.9 CI configurations. (:issue:`1102`, :pull:`1112`)
* Update ``test_pvgis.py`` to be more flexible about the PVGIS copyright notice
(:pull:`1121`)

Documentation
~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion pvlib/tests/iotools/test_pvgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def _compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,
for meta_value in meta:
if not meta_value:
continue
if meta_value == 'PVGIS (c) European Communities, 2001-2020':
# don't check end year because it changes every year
if meta_value[:-4] == 'PVGIS (c) European Communities, 2001-':
continue
assert meta_value in csv_meta

Expand Down

0 comments on commit 5a73ba8

Please sign in to comment.