Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix run variant expression global os #24

Merged
merged 4 commits into from
Sep 4, 2015

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Sep 1, 2015

The main fix is the first commit: 2165d6a

Fix os not being available in a list comprehension

This provides `os` and `sys` via `eval`'s `globals`, instead of `locals`.
Without this, a more complex `run_variant_expression` would fail with a
NameError on Python 3 (3.4.3):

> NameError("name 'os' is not defined",)
This allows to pass in arguments to `py.test`, e.g. via
`tox -- -k test_run_variant_complex`.  It also uses "test" by default as
the first positional argument to `py.test`.
tarpas added a commit that referenced this pull request Sep 4, 2015
@tarpas tarpas merged commit eb4752b into tarpas:master Sep 4, 2015
@blueyed blueyed deleted the fix-run_variant_expression-global-os branch September 4, 2015 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants