aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100755
index 0000000..cbe79d6
--- /dev/null
+++ b/test.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+import os
+
+import nose.core
+
+if 'NOSE_TESTMATCH' not in os.environ:
+ os.environ['NOSE_TESTMATCH'] = '(?:^|[./])test(_|$)'
+
+if 'NOSE_WITH_DOCTEST' not in os.environ:
+ os.environ['NOSE_WITH_DOCTEST'] = '1'
+
+if __name__ == '__main__':
+ nose.core.run()