summaryrefslogtreecommitdiff
path: root/testtools/helpers.py
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2010-10-31 14:21:55 -0400
committerJonathan Lange <jml@canonical.com>2010-10-31 14:21:55 -0400
commite764f0225077e9efa52a2ccd482d01b677d524d4 (patch)
tree83a71e88b6ba52129b95879f0601d38f876ebb2c /testtools/helpers.py
parent15ed60cb55e15f6093333234975a4790475bdd05 (diff)
downloadtesttools-e764f0225077e9efa52a2ccd482d01b677d524d4.tar.gz
__all__
Diffstat (limited to 'testtools/helpers.py')
-rw-r--r--testtools/helpers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testtools/helpers.py b/testtools/helpers.py
index bcfc492..626f38f 100644
--- a/testtools/helpers.py
+++ b/testtools/helpers.py
@@ -1,5 +1,9 @@
# Copyright (c) 2010 Jonathan M. Lange. See LICENSE for details.
+__all__ = [
+ 'try_import',
+ ]
+
def try_import(module_name, alternative=None):
"""Attempt to import `module_name`. If it fails, return `alternative`.