diff options
Diffstat (limited to 'tests/basics/async_with2.py')
-rw-r--r-- | tests/basics/async_with2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basics/async_with2.py b/tests/basics/async_with2.py index 44421ae91..4dd138624 100644 --- a/tests/basics/async_with2.py +++ b/tests/basics/async_with2.py @@ -1,6 +1,9 @@ # test waiting within async with enter/exit functions -import sys +try: + import usys as sys +except ImportError: + import sys if sys.implementation.name == 'micropython': # uPy allows normal generators to be awaitables coroutine = lambda f: f |