From bf3f655437147a5aa561d0101f05c4094ce62f67 Mon Sep 17 00:00:00 2001 From: Sharad Nair <134932980+SharadNair7@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:40:26 +0530 Subject: [PATCH] Issue 11282 removed unwanted code to fix coverage --- src/_pytest/config/argparsing.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/_pytest/config/argparsing.py b/src/_pytest/config/argparsing.py index 664367d6c..9ac5445e7 100644 --- a/src/_pytest/config/argparsing.py +++ b/src/_pytest/config/argparsing.py @@ -219,11 +219,9 @@ class Parser: default = [] elif type == "bool": default = False - elif type == "string": - default = "" else: - # unknown type will default to None - default = None + # for string type + default = "" self._inidict[name] = (help, type, default) self._ininames.append(name)