This commit is contained in:
Jiajun Xu 2024-07-03 08:54:04 +08:00 committed by GitHub
commit 548179406c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1526,6 +1526,8 @@ class FixtureManager:
def _getusefixturesnames(self, node: nodes.Item) -> Iterator[str]:
"""Return the names of usefixtures fixtures applicable to node."""
for mark in node.iter_markers(name="usefixtures"):
if not mark.args:
warnings.warn(f"Warning: empty usefixtures in {node.name}.")
yield from mark.args
def getfixtureclosure(