From db9c7dbf3d68e4f3e57ac0539ac5a91f65a17b8d Mon Sep 17 00:00:00 2001 From: Fabian Peter Hammerle Date: Sat, 30 May 2020 09:34:59 +0200 Subject: [PATCH] CorticalParcellationStats.read: exclude block depending on pandas version from coverage check --- freesurfer_stats/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freesurfer_stats/__init__.py b/freesurfer_stats/__init__.py index c5aeaa8..299e77e 100644 --- a/freesurfer_stats/__init__.py +++ b/freesurfer_stats/__init__.py @@ -195,7 +195,7 @@ def read(cls, path: typing.Union[str, pathlib.Path]) -> "CorticalParcellationSta ) = pandas.io.common.get_filepath_or_buffer(path) # https://github.com/pandas-dev/pandas/blob/v0.25.3/pandas/io/common.py#L171 # https://github.com/pandas-dev/pandas/blob/v0.21.0/pandas/io/common.py#L171 - if instructions: + if instructions: # pragma: no cover assert len(instructions) == 1, instructions should_close = instructions[0] else: