diff options
author | Rémi Cardona <remi.cardona@free.fr> | 2014-09-17 23:34:31 +0200 |
---|---|---|
committer | Rémi Cardona <remi.cardona@free.fr> | 2014-09-17 23:34:31 +0200 |
commit | 30937b08ed70f51fa5785b419bda47f122157c3c (patch) | |
tree | 072cf154c24de1ae151d20093ca9a3cc64a140c3 /test/utils.py | |
parent | ac2d15727c079fbc1d3fe6a606feef9c1179d2ce (diff) | |
download | logilab-common-30937b08ed70f51fa5785b419bda47f122157c3c.tar.gz |
[py3k] print function
Requires python >= 2.6.
Diffstat (limited to 'test/utils.py')
-rw-r--r-- | test/utils.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/utils.py b/test/utils.py index f54c179..37e23cc 100644 --- a/test/utils.py +++ b/test/utils.py @@ -18,6 +18,7 @@ '''unit tests utilities for ureports ''' +from __future__ import print_function from cStringIO import StringIO from logilab.common.ureports.nodes import * @@ -31,11 +32,11 @@ class WriterTC: try: self.assertMultiLineEqual(got, expected) except: - print '**** got for %s' % test_id - print got - print '**** while expected' - print expected - print '****' + print('**** got for %s' % test_id) + print(got) + print('**** while expected') + print(expected) + print('****') raise def test_section(self): |