volandlm TestFun 6356
Григорьев Денис, 124ая TestFun 6686
f1class Tester:f1class Tester:
22
3    def __init__(self, fun):3    def __init__(self, fun):
4        self.fun = fun4        self.fun = fun
55
6    def __call__(self, suite, allowed=()):6    def __call__(self, suite, allowed=()):
7        allowed = tuple(allowed)7        allowed = tuple(allowed)
n8        result = 0n8        flag = 0
9        for args in suite:9        for args in suite:
10            try:10            try:
11                self.fun(*args)11                self.fun(*args)
12            except allowed:12            except allowed:
n13                result = -1n13                flag = -1
14            except Exception:14            except Exception:
15                return 115                return 1
t16        return resultt16        return flag
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op