Do not asssume `Item.obj` in 'skipping' plugin
See #2231 for discussion.
This commit is contained in:
parent
da5a3dba87
commit
bad261279c
|
@ -112,7 +112,8 @@ class MarkEvaluator:
|
|||
|
||||
def _getglobals(self):
|
||||
d = {'os': os, 'sys': sys, 'config': self.item.config}
|
||||
d.update(self.item.obj.__globals__)
|
||||
if hasattr(self.item, 'obj'):
|
||||
d.update(self.item.obj.__globals__)
|
||||
return d
|
||||
|
||||
def _istrue(self):
|
||||
|
|
Loading…
Reference in New Issue