Skip to content

Commit 6894b7e

Browse files
author
Kevin Turner
committed
[project @ runtests: add more verbose error reporting around custom_modules]
1 parent 5d4d0f4 commit 6894b7e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎admin/runtests‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ def pyunitTests():
104104
s.addTest(loader.loadTestsFromModule(m))
105105

106106
for m in custom_modules:
107-
s.addTest(m.pyUnitTests())
107+
try:
108+
s.addTest(m.pyUnitTests())
109+
except AttributeError, ex:
110+
# because the AttributeError doesn't actually say which
111+
# object it was.
112+
print "Error loading tests from %s:" % (m,)
113+
raise
108114

109115
runner = unittest.TextTestRunner() # verbosity=2)
110116

0 commit comments

Comments
 (0)