diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2015-07-14 22:53:38 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2015-07-14 22:53:38 +0200 |
commit | 695ca3406ba7ef12f5c49eeaa226f4cd13408f03 (patch) | |
tree | 3a181aacca08ea3af247e2677947aeb81d309d28 /tests/test_imports.py | |
parent | 9c57c9e1c0dd65c9121baced96d27876c0cb1e0d (diff) | |
download | click-695ca3406ba7ef12f5c49eeaa226f4cd13408f03.tar.gz |
Implement support for thread local context.
This allows click users to access the context object from anywhere
within the current thread. The access to this object is properly
scoped as before.
Diffstat (limited to 'tests/test_imports.py')
-rw-r--r-- | tests/test_imports.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_imports.py b/tests/test_imports.py index 373f247..3a7da4b 100644 --- a/tests/test_imports.py +++ b/tests/test_imports.py @@ -29,7 +29,8 @@ click.echo(json.dumps(rv)) ALLOWED_IMPORTS = set([ 'weakref', 'os', 'struct', 'collections', 'sys', 'contextlib', - 'functools', 'stat', 're', 'codecs', 'inspect', 'itertools', 'io' + 'functools', 'stat', 're', 'codecs', 'inspect', 'itertools', 'io', + 'threading' ]) |