Skip to content

Commit 1204cba

Browse files
authored
Merge pull request #1745 from RonnyPfannschmidt/skip-compat
skipping plugin: remove python2.5 compat code
2 parents bcc58ec + 9dadaa8 commit 1204cba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

_pytest/skipping.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ def istrue(self):
108108

109109
def _getglobals(self):
110110
d = {'os': os, 'sys': sys, 'config': self.item.config}
111-
func = self.item.obj
112-
try:
113-
d.update(func.__globals__)
114-
except AttributeError:
115-
d.update(func.func_globals)
111+
d.update(self.item.obj.__globals__)
116112
return d
117113

118114
def _istrue(self):

0 commit comments

Comments
 (0)