[Piglit] [PATCH 2/3] results. make assert in JSONWriter.close_json() more verbose
Dylan Baker
baker.dylan.c at gmail.com
Wed Jun 25 16:05:26 PDT 2014
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
framework/results.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/framework/results.py b/framework/results.py
index 1a6a652..a715b29 100644
--- a/framework/results.py
+++ b/framework/results.py
@@ -168,7 +168,9 @@ class JSONWriter(object):
"""
self.close_dict()
- assert self._open_containers == []
+ # Parens make this evaluate differently?
+ assert self._open_containers == [], \
+ "containers stack: {0}".format(self._open_containers)
self.file.close()
--
2.0.0
More information about the Piglit
mailing list