summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorKevin Turner <kevin@janrain.com>2007-06-22 23:25:42 +0000
committerKevin Turner <kevin@janrain.com>2007-06-22 23:25:42 +0000
commite504f06acbf7c6714b08be541db8dd89c7f58e1a (patch)
tree06d2d21add23ce8ac6ef7e799d44440f524a2bcd /admin
parent4dd8f47e3fb99613a460c440755535198fd3ad56 (diff)
downloadopenid-e504f06acbf7c6714b08be541db8dd89c7f58e1a.tar.gz
[project @ admin/runtests: add test_examples]
Diffstat (limited to 'admin')
-rw-r--r--admin/runtests12
1 files changed, 11 insertions, 1 deletions
diff --git a/admin/runtests b/admin/runtests
index e91cf48..eeea58c 100644
--- a/admin/runtests
+++ b/admin/runtests
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-import sys
+import sys, warnings
test_modules = [
'cryptutil',
@@ -94,6 +94,16 @@ def pyunitTests():
test_rpverify,
]
+ try:
+ from openid.test import test_examples
+ except ImportError, e:
+ if 'twill' in str(e):
+ warnings.warn("Could not import twill; skipping test_examples.")
+ else:
+ raise
+ else:
+ pyunit_modules.append(test_examples)
+
# Some modules have data-driven tests, and they use custom methods
# to build the test suite:
custom_modules = [