summaryrefslogtreecommitdiff
path: root/nose/tools/__init__.py
diff options
context:
space:
mode:
authorErik Rose <erik@mozilla.com>2011-12-18 01:01:21 -0800
committerErik Rose <erik@mozilla.com>2011-12-18 15:30:19 -0800
commit28db0e5f14ece94865b59e4aeda3dea71afd9435 (patch)
tree0f4d48961487e4977969d779944190b058fa9b72 /nose/tools/__init__.py
parent8f923b3e241ea3ecb695050c51ae28769a23612a (diff)
downloadnose-28db0e5f14ece94865b59e4aeda3dea71afd9435.tar.gz
Define __unittest in scope of nose's assertion helpers to hide noisy stack frames. Closes #453.
I divided the tools into two buckets: trivial, which should not have their stack frames exposed in tracebacks; and nontrivial, which should. The tools module becomes a package, and everything stays backward-compatible.
Diffstat (limited to 'nose/tools/__init__.py')
-rw-r--r--nose/tools/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/nose/tools/__init__.py b/nose/tools/__init__.py
new file mode 100644
index 0000000..ba32301
--- /dev/null
+++ b/nose/tools/__init__.py
@@ -0,0 +1,11 @@
+"""
+Tools for testing
+-----------------
+
+nose.tools provides a few convenience functions to make writing tests
+easier. You don't have to use them; nothing in the rest of nose depends
+on any of these methods.
+
+"""
+from nose.tools.nontrivial import *
+from nose.tools.trivial import *