Skip to content

Commit 22188c3

Browse files
committed
porting: fix ordering of macro invocations in lazify tests
In `mcpyrate`, putting several macros in the same `with` runs them left-to-right.
1 parent ce653ad commit 22188c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

unpythonic/syntax/tests/test_lazify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ def withec2(ec):
478478
test[withec2 == 42]
479479

480480
# Introducing the HasThon programming language.
481-
# For a continuation-enabled HasThon, use "with continuations, autocurry, lazify".
481+
# For a continuation-enabled HasThon, use "with lazify, autocurry, continuations".
482482
with testset("HasThon, with 100% more Thon than popular brands"):
483-
with autocurry, lazify:
483+
with lazify, autocurry:
484484
def add3(a, b, c):
485485
return a + b + c
486486
test[add3(1)(2)(3) == 6]
@@ -503,7 +503,7 @@ def f(a, b):
503503
# the continuations chained by it to decide whether to force their args.
504504
# - the default cont ``identity`` is strict, so it will force return values
505505
with testset("integration with continuations"):
506-
with continuations, lazify:
506+
with lazify, continuations:
507507
k = None
508508
def setk(*args, cc):
509509
nonlocal k

0 commit comments

Comments
 (0)