Backport
(exp, func, *args, **kwargs)
| 70 | |
| 71 | |
| 72 | def assert_raises(exp, func, *args, **kwargs): |
| 73 | """Backport""" |
| 74 | try: |
| 75 | func(*args, **kwargs) |
| 76 | except exp: |
| 77 | return |
| 78 | std_msg = '%s not raised' % (_safe_rep(exp)) |
| 79 | raise AssertionError(_format_msg(None, std_msg)) |
| 80 | |
| 81 | |
| 82 | def assert_in(member, container, msg=None): |
no test coverage detected
searching dependent graphs…