diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-17 23:21:52 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-17 23:21:52 +0100 |
commit | 559d8239cac950cc011edd9605010a311b2b9be6 (patch) | |
tree | 6e4e2c1a2ca0f71a4c0bd4c3c0d603bf3cd5be81 /tests/import/gen_context.py | |
parent | ea8d06c39d9c94036e490b300d46f367c9eb78d9 (diff) | |
download | micropython-559d8239cac950cc011edd9605010a311b2b9be6.tar.gz micropython-559d8239cac950cc011edd9605010a311b2b9be6.zip |
tests: Move gen_context to import tests, because it relies on import.
Diffstat (limited to 'tests/import/gen_context.py')
-rw-r--r-- | tests/import/gen_context.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/import/gen_context.py b/tests/import/gen_context.py new file mode 100644 index 0000000000..02f1531467 --- /dev/null +++ b/tests/import/gen_context.py @@ -0,0 +1,9 @@ +import gen_context2 + +GLOBAL = "GLOBAL" + +def gen(): + print(GLOBAL) + yield 1 + +gen_context2.call(gen()) |