devtools/testlib.py
changeset 10589 7c23b7de2b8d
parent 10569 af47954c1015
child 10590 7629902e7554
--- a/devtools/testlib.py	Fri Sep 11 14:28:06 2015 +0200
+++ b/devtools/testlib.py	Fri Sep 11 14:52:09 2015 +0200
@@ -16,6 +16,8 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """this module contains base classes and utilities for cubicweb tests"""
+from __future__ import print_function
+
 __docformat__ = "restructuredtext en"
 
 import sys
@@ -1164,7 +1166,7 @@
                 cnx.execute(rql, args)
             except ValidationError as ex:
                 # failed to satisfy some constraint
-                print 'error in automatic db population', ex
+                print('error in automatic db population', ex)
                 cnx.commit_state = None # reset uncommitable flag
         self.post_populate(cnx)