Skip to content

Commit c46f15d

Browse files
committed
Allow passing state to Ex
1 parent 46dfa6b commit c46f15d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonwhat/check_syntax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def _from_func(cls, f):
8585
func_chain._stack.append(f)
8686
return func_chain
8787

88-
def Ex():
89-
return Chain(State.root_state)
88+
def Ex(state = None):
89+
return Chain(state or State.root_state)
9090

9191
# Prepare SCTs that may be chained attributes ----------------------
9292
# decorate functions that may try to run test_* function nodes as subtests

0 commit comments

Comments
 (0)