(self, fn, sort)
| 287 | self.stats[-1].report() |
| 288 | |
| 289 | def _run_with_profile(self, fn, sort): |
| 290 | pr = cProfile.Profile() |
| 291 | pr.enable() |
| 292 | try: |
| 293 | result = fn(self.num) |
| 294 | finally: |
| 295 | pr.disable() |
| 296 | |
| 297 | stats = pstats.Stats(pr) |
| 298 | |
| 299 | self.stats.append(TestResult(self, fn, stats=stats, sort=sort)) |
| 300 | return result |
| 301 | |
| 302 | def _run_with_time(self, fn): |
| 303 | now = time.time() |
no test coverage detected