Болл Алёна Лилиана Джоханна, 425 TestFun 6622
Максимова Яна Дмитриевна TestFun 6553
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        res = 07        res = 0
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 exc:11            except Exception as exc:
t12                if any((isinstance(exc, elem) for elem in allowed)):t12                if any((isinstance(exc, exceptions) for exceptions in al
 >lowed)):
13                    res = -113                    res = -1
14                else:14                else:
15                    return 115                    return 1
16        return res16        return res
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op