Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pydata/patsy
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Oct 20, 2015
2 parents d28e79b + 0c06192 commit 4cc4db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patsy/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ def capture(cls, eval_env=0, reference=0):
x = 1
this_env = EvalEnvironment.capture()
assert this_env["x"] == 1
assert this_env.namespace["x"] == 1
def child_func():
return EvalEnvironment.capture(1)
this_env_from_child = child_func()
assert this_env_from_child["x"] == 1
assert this_env_from_child.namespace["x"] == 1
Example::
Expand Down

0 comments on commit 4cc4db4

Please sign in to comment.