Commit 78ff69fa authored by ian@well-typed.com's avatar ian@well-typed.com

Handle duplicates in the brokens list

parent 4c879a4b
......@@ -151,18 +151,22 @@ def expect_broken( bug ):
return lambda name, opts, b=bug: _expect_broken (name, opts, b )
def _expect_broken( name, opts, bug ):
global brokens
brokens.append((bug, name))
record_broken(name, bug)
opts.expect = 'fail';
def expect_broken_for( bug, ways ):
return lambda name, opts, b=bug, w=ways: _expect_broken_for( name, opts, b, w )
def _expect_broken_for( name, opts, bug, ways ):
global brokens
brokens.append((bug, name))
record_broken(name, bug)
opts.expect_fail_for = ways
def record_broken(name, bug):
global brokens
me = (bug, name)
if not me in brokens:
brokens.append(me)
# -----
def omit_ways( ways ):
......
Markdown is supported
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