Skip to content

Commit

Permalink
Do not skip test, mark xfail as it could be automatically solved in a…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Jun 24, 2018
1 parent 00daef9 commit 059d481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ def test_add_variable_in_context(self, evaluator):
evaluator._execute_code('a = 1\nassert a == 1', additional_context=evaluator.context)
assert evaluator._evaluate_code('a == 1', additional_context={'a': 1})

@pytest.mark.skip('http://stackoverflow.com/questions/32894942/listcomp-unable-to-access-locals-defined-in-code-called-by-exec-if-nested-in-fun')
@pytest.mark.xfail(reason='http://stackoverflow.com/questions/32894942/listcomp-unable-to-access-locals-defined-in-code-called-by-exec-if-nested-in-fun and possibly fixed with https://bugs.python.org/issue3692')
def test_access_outer_scope(self, evaluator):
evaluator._execute_code('d = [x for x in range(10) if x!=a]', additional_context={'a': 1})
evaluator._execute_code('d = [x for x in range(10) if x != a]', additional_context={'a': 1})

0 comments on commit 059d481

Please sign in to comment.