Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uPython-mirror
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
uPython-mirror
Commits
ab1a13cd
Commit
ab1a13cd
authored
Feb 20, 2018
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leon: Update CORE_BASICS/async_xxx tests to work without attrtuple.
parent
22ffd72e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
leon-tests/CORE_BASICS/async_await2.py
leon-tests/CORE_BASICS/async_await2.py
+1
-1
leon-tests/CORE_BASICS/async_for2.py
leon-tests/CORE_BASICS/async_for2.py
+1
-1
leon-tests/CORE_BASICS/async_with2.py
leon-tests/CORE_BASICS/async_with2.py
+1
-1
No files found.
leon-tests/CORE_BASICS/async_await2.py
View file @
ab1a13cd
# test await expression
import
sys
if
sys
.
implementation
.
name
==
'micropython'
:
if
not
hasattr
(
sys
.
implementation
,
'name'
)
or
sys
.
implementation
.
name
==
'micropython'
:
# uPy allows normal generators to be awaitables
coroutine
=
lambda
f
:
f
else
:
...
...
leon-tests/CORE_BASICS/async_for2.py
View file @
ab1a13cd
# test waiting within "async for" aiter/anext functions
import
sys
if
sys
.
implementation
.
name
==
'micropython'
:
if
not
hasattr
(
sys
.
implementation
,
'name'
)
or
sys
.
implementation
.
name
==
'micropython'
:
# uPy allows normal generators to be awaitables
coroutine
=
lambda
f
:
f
else
:
...
...
leon-tests/CORE_BASICS/async_with2.py
View file @
ab1a13cd
# test waiting within async with enter/exit functions
import
sys
if
sys
.
implementation
.
name
==
'micropython'
:
if
not
hasattr
(
sys
.
implementation
,
'name'
)
or
sys
.
implementation
.
name
==
'micropython'
:
# uPy allows normal generators to be awaitables
coroutine
=
lambda
f
:
f
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment