Join GitHub today
xfail condition should include `platform` module in namespace #3236
One can currently write:
If one tries that, an error is raised:
It seems reasonable to me the
I searched but could not find an existing issue or even a definition of what these conditional expressions are guaranteed to support, so I hope this is not a duplicate report.
For what it's worth: I do not see the NameError when trying that (pytest
I wanted to try if
If I'm understanding correctly the problem isn't outcomes.xfail but the xfail mark which is talked about in the docs here.
If that's the case then the relevant code for what's available during evaluation of conditions is here:
So it's the global namespace of the module of the test plus os, sys, and item.config.