Repository: climate Updated Branches: refs/heads/master fc61608a9 -> 54f211084
CLIMATE-809 - Fix coveragerc file Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/a9efae10 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/a9efae10 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/a9efae10 Branch: refs/heads/master Commit: a9efae105ac0a467139c26d206f8188f149ec120 Parents: 6b9fae9 Author: Ibrahim <jarifibra...@gmail.com> Authored: Thu Jun 16 13:24:16 2016 +0530 Committer: Ibrahim <jarifibra...@gmail.com> Committed: Thu Jun 16 13:26:31 2016 +0530 ---------------------------------------------------------------------- .coveragerc | 7 ++++--- ocw/data_source/local.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/a9efae10/.coveragerc ---------------------------------------------------------------------- diff --git a/.coveragerc b/.coveragerc index 1763e54..4f9727a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -18,13 +18,14 @@ [report] exclude_lines = if __name__ == .__main__.: - - # These lines will never be executed under any circumstances + pragma: no cover + + # These lines will never be executed under any circumstances in local module if level_index == 0: elif level_index == 1: elif level_index == 2: - else: + # In utils module # Due to issue https://issues.apache.org/jira/browse/CLIMATE-803 def calc_subregion_area_mean_and_std http://git-wip-us.apache.org/repos/asf/climate/blob/a9efae10/ocw/data_source/local.py ---------------------------------------------------------------------- diff --git a/ocw/data_source/local.py b/ocw/data_source/local.py index 0fa81b1..11cedcd 100644 --- a/ocw/data_source/local.py +++ b/ocw/data_source/local.py @@ -276,7 +276,7 @@ def load_file(file_path, values = values [:,elevation_index,:,:] elif level_index == 2: values = values [:,:,elevation_index,:] - else: + else: #pragma: no cover values = values [:,:,:,elevation_index] origin = {