projects
/
osm
/
N2VC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New N2VC interface + updated libjuju
[osm/N2VC.git]
/
tests
/
test_async_task.py
1
#!/usr/bin/env python3
2
# Recreate the conditions in which this will be used in OSM, called via tasks
3
import
asyncio
4
5
if
__name__
==
"__main__"
:
6
main
()
7
8
async def
do_something
():
9
pass
10
11
def
main
():
12
13
loop
=
asyncio
.
get_event_loop
()
14
loop
.
run_until_complete
(
do_something
())
15
loop
.
close
()
16
loop
=
None