diff options
author | Kevin Turner <kevin@janrain.com> | 2007-06-22 23:25:42 +0000 |
---|---|---|
committer | Kevin Turner <kevin@janrain.com> | 2007-06-22 23:25:42 +0000 |
commit | e504f06acbf7c6714b08be541db8dd89c7f58e1a (patch) | |
tree | 06d2d21add23ce8ac6ef7e799d44440f524a2bcd /admin | |
parent | 4dd8f47e3fb99613a460c440755535198fd3ad56 (diff) | |
download | openid-e504f06acbf7c6714b08be541db8dd89c7f58e1a.tar.gz |
[project @ admin/runtests: add test_examples]
Diffstat (limited to 'admin')
-rw-r--r-- | admin/runtests | 12 |
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 = [ |