Clear lists (for tests).
(self)
| 2230 | self.traced = [] |
| 2231 | |
| 2232 | def clear(self): |
| 2233 | "Clear lists (for tests)." |
| 2234 | # Call after all tests in a module to avoid memory leaks. |
| 2235 | self.untraced.clear() |
| 2236 | self.traced.clear() |
| 2237 | |
| 2238 | def add(self, var, callback): |
| 2239 | """Add (var, callback) tuple to untraced list. |