Skip to content

Commit

Permalink
Assert blocking issue is fixed. Fixed Issue #30 #33
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jul 22, 2017
1 parent 65dbcbf commit cb9bbff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,12 @@ def test_issue_26():
# assert no_wait == [0, 3, 6, 9]
# assert no_wait == wait_a_bit
# assert no_wait == wait_longer


def test_issue_33():
def do(x):
v = Promise.resolve("ok").then(lambda x: x).get()
return v

p = Promise.resolve(None).then(do)
assert p.get() == "ok"

0 comments on commit cb9bbff

Please sign in to comment.