Skip to content

Commit

Permalink
Added promisify depreacate warning test
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 12, 2017
1 parent 1f51d04 commit 234d121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,12 @@ def test_promises_with_only_then():
assert promise2.reason == error
assert promise3.reason == error


def test_promises_promisify_still_works_but_deprecated_for_non_callables():
x = promisify(1)
assert isinstance(x, Promise)
assert x.get() == 1

# def test_promise_loop():
# values = Promise.resolve([1, None, 2])
# def on_error(error):
Expand Down

0 comments on commit 234d121

Please sign in to comment.