-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
type: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
Hi,
I was analyzing the test sorting algorithm and it stumbled upon this function setall which does not seem to be called by anything in the code:
Lines 914 to 924 in 6a43c8c
| def setall(self, funcargs, id, param): | |
| for x in funcargs: | |
| self._checkargnotcontained(x) | |
| self.funcargs.update(funcargs) | |
| if id is not NOTSET: | |
| self._idlist.append(id) | |
| if param is not NOTSET: | |
| assert self._globalparam is NOTSET | |
| self._globalparam = param | |
| for arg in funcargs: | |
| self._arg2scopenum[arg] = fixtures.scopenum_function |
Could anyone confirm that is the case? If so, guess it could be removed? I could do this quick PR.
It seems it was superseded by setmulti2?
Lines 904 to 912 in 6a43c8c
| def setmulti2(self, valtypes, argnames, valset, id, marks, scopenum, param_index): | |
| for arg, val in zip(argnames, valset): | |
| self._checkargnotcontained(arg) | |
| valtype_for_arg = valtypes[arg] | |
| getattr(self, valtype_for_arg)[arg] = val | |
| self.indices[arg] = param_index | |
| self._arg2scopenum[arg] = scopenum | |
| self._idlist.append(id) | |
| self.marks.extend(normalize_mark_list(marks)) |
Metadata
Metadata
Assignees
Labels
type: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch