(self, context)
| 132 | return context |
| 133 | |
| 134 | def _set_context(self, context): |
| 135 | if context is not None: |
| 136 | context = weakref.ref(context) |
| 137 | self._context = context |
| 138 | self.reset() # Clear cache of previous context |
| 139 | for run in self.runs: # Reset the run context too. |
| 140 | run.context = context |
| 141 | |
| 142 | context = property(_get_context, _set_context) |
| 143 |