Гудов Дмитрий 321 TestFun 7033
Арсений Рудченко, 423 группа TestFun 7192
f1class Tester:f1class Tester:
22
3    def __init__(self, fun):3    def __init__(self, fun):
4        self.fun = fun4        self.fun = fun
55
n6    def __call__(self, suite, allowed=[]):n6    def __call__(self, suite, allowed=()):
7        flag = False7        had_exc = False
8        for args in suite:8        for args in suite:
9            try:9            try:
10                self.fun(*args)10                self.fun(*args)
11            except Exception as e:11            except Exception as e:
n12                flag = Truen12                had_exc = True
13                if not any((isinstance(e, a) for a in allowed)):13                if not any((isinstance(e, a) for a in allowed)):
14                    return 114                    return 1
t15        return -1 if flag else 0t15        return -1 if had_exc else 0
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op