Городецкая Агнесса Алексеевна 418 TestFun 6480
Mikhailenko Alexandr Sergeevich 316 TestFun 6461
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=()):
n7        had_allowed_exception = Falsen7        has_allowed_exception = False
8        for args in suite:8        for args in suite:
9            try:9            try:
10                self.fun(*args)10                self.fun(*args)
n11            except Exception as e:n11            except Exception as exc:
12                if isinstance(e, tuple(allowed)):12                if isinstance(exc, tuple(allowed)):
13                    had_allowed_exception = True13                    has_allowed_exception = True
14                else:14                else:
15                    return 115                    return 1
n16        if had_allowed_exception:n16        if has_allowed_exception:
17            return -117            return -1
tt18        else:
18        return 019            return 0
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op