[devtools] named context for boxes subTest for consistency 3.24
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 23 Nov 2016 17:25:31 +0100
branch3.24
changeset 11862 316ebf88f5b3
parent 11861 2fca66367edf
child 11863 861d87a439f2
child 11865 1c5bf3d7422a
[devtools] named context for boxes subTest for consistency
cubicweb/devtools/testlib.py
--- a/cubicweb/devtools/testlib.py	Wed Nov 23 18:38:46 2016 +0100
+++ b/cubicweb/devtools/testlib.py	Wed Nov 23 17:25:31 2016 +0100
@@ -1289,7 +1289,7 @@
                 self._test_action(action)
         for box in self.list_boxes_for(rset):
             w = [].append
-            with self.subTest(self._testname(rset, box.__regid__, 'box')):
+            with self.subTest(name=self._testname(rset, box.__regid__, 'box')):
                 box.render(w)
 
     @staticmethod