Commit 45912613 authored by Simon Marlow's avatar Simon Marlow
Browse files

If the "setup" argument to test is a list, treat it as a list of functions

Avoids the need to write composes()
parent e812749b
......@@ -9,6 +9,7 @@ import re
import traceback
import copy
import glob
import types
have_subprocess = False
......@@ -376,6 +377,10 @@ def getTestDir():
def test ( name, setup, func, args):
n = 1
opts = copy.copy(thisdir_testopts)
if type(setup) is types.ListType:
setup = composes(setup)
if opts.alone:
n = config.threads
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment