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