Index: tools/testrunner/local/execution.py |
diff --git a/tools/testrunner/local/execution.py b/tools/testrunner/local/execution.py |
index e13393bf1c7626f1d64a48ab627e1f8dec1679aa..2b2f876d24f06a421853e41d24f2ab1be6d5acca 100644 |
--- a/tools/testrunner/local/execution.py |
+++ b/tools/testrunner/local/execution.py |
@@ -255,8 +255,13 @@ class Runner(object): |
if queued_exception: |
raise queued_exception |
- # Make sure that any allocations were printed in predictable mode. |
- assert not self.context.predictable or self.printed_allocations |
+ # Make sure that any allocations were printed in predictable mode (if we |
+ # ran any tests). |
+ assert ( |
+ not self.total or |
+ not self.context.predictable or |
+ self.printed_allocations |
+ ) |
def _VerbosePrint(self, text): |
if self.context.verbose: |