File tree 3 files changed +7
-2
lines changed 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Antony Lee
16
16
Armin Rigo
17
17
Aron Curzon
18
18
Aviv Palivoda
19
+ Barney Gale
19
20
Ben Webb
20
21
Benjamin Peterson
21
22
Bernard Pratz
Original file line number Diff line number Diff line change 8
8
9
9
*
10
10
11
- *
11
+ * Conditionless ``xfail `` markers no longer rely on the underlying test item
12
+ being an instance of ``PyobjMixin ``, and can therefore apply to tests not
13
+ collected by the built-in python test collector. Thanks `@barneygale `_ for the
14
+ PR.
12
15
13
16
*
14
17
49
52
terminal output it relies on is missing. Thanks to `@eli-b `_ for the PR.
50
53
51
54
55
+ .. _@barneygale : https://github.com/barneygale
52
56
.. _@lesteve : https://github.com/lesteve
53
57
.. _@malinoff : https://github.com/malinoff
54
58
.. _@pelme : https://github.com/pelme
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ def _istrue(self):
119
119
if hasattr (self , 'result' ):
120
120
return self .result
121
121
if self .holder :
122
- d = self ._getglobals ()
123
122
if self .holder .args or 'condition' in self .holder .kwargs :
124
123
self .result = False
125
124
# "holder" might be a MarkInfo or a MarkDecorator; only
@@ -135,6 +134,7 @@ def _istrue(self):
135
134
for expr in args :
136
135
self .expr = expr
137
136
if isinstance (expr , py .builtin ._basestring ):
137
+ d = self ._getglobals ()
138
138
result = cached_eval (self .item .config , expr , d )
139
139
else :
140
140
if "reason" not in kwargs :
You can’t perform that action at this time.
0 commit comments