(func, funcopy)
| 139 | |
| 140 | |
| 141 | def _copy_func_details(func, funcopy): |
| 142 | # we explicitly don't copy func.__dict__ into this copy as it would |
| 143 | # expose original attributes that should be mocked |
| 144 | for attribute in ( |
| 145 | '__name__', '__doc__', '__text_signature__', |
| 146 | '__module__', '__defaults__', '__kwdefaults__', |
| 147 | ): |
| 148 | try: |
| 149 | setattr(funcopy, attribute, getattr(func, attribute)) |
| 150 | except AttributeError: |
| 151 | pass |
| 152 | |
| 153 | |
| 154 | def _callable(obj): |
no outgoing calls
no test coverage detected
searching dependent graphs…