From 2feb09fc470da3cb648aafdae0998e1941e4edea Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Fri, 7 Feb 2025 14:23:53 -0800 Subject: [PATCH] Add pragma nocover for line that is hard to test --- src/pynwb/ecephys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pynwb/ecephys.py b/src/pynwb/ecephys.py index af8048fb8..6758b9f3d 100644 --- a/src/pynwb/ecephys.py +++ b/src/pynwb/ecephys.py @@ -200,7 +200,7 @@ class EventWaveform(MultiContainerInterface): } def __init__(self, **kwargs): - if not self._in_construct_mode: + if not self._in_construct_mode: # pragma: no cover raise ValueError( "The EventWaveform neurodata type is deprecated. If you are interested in using it, " "please create an issue on https://github.com/NeurodataWithoutBorders/nwb-schema/issues."