diff options
| author | Damien George | 2014-04-17 23:21:52 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-17 23:21:52 +0100 |
| commit | 559d8239cac950cc011edd9605010a311b2b9be6 (patch) | |
| tree | 6e4e2c1a2ca0f71a4c0bd4c3c0d603bf3cd5be81 /tests/import | |
| parent | ea8d06c39d9c94036e490b300d46f367c9eb78d9 (diff) | |
tests: Move gen_context to import tests, because it relies on import.
Diffstat (limited to 'tests/import')
| -rw-r--r-- | tests/import/gen_context.py | 9 | ||||
| -rw-r--r-- | tests/import/gen_context2.py | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/import/gen_context.py b/tests/import/gen_context.py new file mode 100644 index 000000000..02f153146 --- /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()) diff --git a/tests/import/gen_context2.py b/tests/import/gen_context2.py new file mode 100644 index 000000000..0d8048afc --- /dev/null +++ b/tests/import/gen_context2.py @@ -0,0 +1,2 @@ +def call(g): + next(g) |
