summaryrefslogtreecommitdiffstatshomepage
path: root/tests/import/gen_context.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-17 23:21:52 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-17 23:21:52 +0100
commit559d8239cac950cc011edd9605010a311b2b9be6 (patch)
tree6e4e2c1a2ca0f71a4c0bd4c3c0d603bf3cd5be81 /tests/import/gen_context.py
parentea8d06c39d9c94036e490b300d46f367c9eb78d9 (diff)
downloadmicropython-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.py9
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())