workaround odd nose problem causing the run_tests function to be called even if the file is not main - refs #1539

This commit is contained in:
Dane Springmeyer 2012-10-16 12:49:12 -07:00
parent 1c9aa5bc09
commit 3980eea30a

View file

@ -58,8 +58,9 @@ def get_unique_colors(im):
pixels = sorted(pixels)
return map(pixel2rgba,pixels)
def run_tests(iterable):
def run_tests(iterable=None):
failed = 0
if iterable:
for test in iterable:
try:
test()