Skip to content

Commit bf78ef3

Browse files
committed
config: remove an unneeded Namespace copy
1 parent 5a85b90 commit bf78ef3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,9 +1501,7 @@ def parse(self, args: list[str], addopts: bool = True) -> None:
15011501
# are going to be loaded.
15021502
self.pluginmanager.consider_env()
15031503

1504-
self.known_args_namespace = self._parser.parse_known_args(
1505-
args, namespace=copy.copy(self.known_args_namespace)
1506-
)
1504+
self._parser.parse_known_args(args, namespace=self.known_args_namespace)
15071505

15081506
self._validate_plugins()
15091507
self._warn_about_skipped_plugins()

0 commit comments

Comments
 (0)