Skip to content

Commit 8a4d522

Browse files
committed
Remove unused CallSpec2 fields _globalid, _globalparam
1 parent e6ea9ed commit 8a4d522

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/_pytest/python.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,6 @@ def __init__(self, metafunc):
789789
self.funcargs = {}
790790
self._idlist = []
791791
self.params = {}
792-
self._globalid = NOTSET
793-
self._globalparam = NOTSET
794792
self._arg2scopenum = {} # used for sorting parametrized resources
795793
self.marks = []
796794
self.indices = {}
@@ -803,8 +801,6 @@ def copy(self):
803801
cs.indices.update(self.indices)
804802
cs._arg2scopenum.update(self._arg2scopenum)
805803
cs._idlist = list(self._idlist)
806-
cs._globalid = self._globalid
807-
cs._globalparam = self._globalparam
808804
return cs
809805

810806
def _checkargnotcontained(self, arg):
@@ -815,9 +811,7 @@ def getparam(self, name):
815811
try:
816812
return self.params[name]
817813
except KeyError:
818-
if self._globalparam is NOTSET:
819-
raise ValueError(name)
820-
return self._globalparam
814+
raise ValueError(name)
821815

822816
@property
823817
def id(self):

0 commit comments

Comments
 (0)