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:
parent
1c9aa5bc09
commit
3980eea30a
1 changed files with 18 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue