Python code coverage for Lib/unittest/test/testmock/support.py
# | count | content |
---|---|---|
1 | n/a | def is_instance(obj, klass): |
2 | n/a | """Version of is_instance that doesn't access __class__""" |
3 | n/a | return issubclass(type(obj), klass) |
4 | n/a | |
5 | n/a | |
6 | n/a | class SomeClass(object): |
7 | n/a | class_attribute = None |
8 | n/a | |
9 | n/a | def wibble(self): |
10 | n/a | pass |
11 | n/a | |
12 | n/a | |
13 | n/a | class X(object): |
14 | n/a | pass |
15 | n/a | |
16 | n/a | |
17 | n/a | def examine_warnings(func): |
18 | n/a | def wrapper(): |
19 | n/a | with catch_warnings(record=True) as ws: |
20 | n/a | func(ws) |
21 | n/a | return wrapper |