[test] import StringIO from six.moves

Python 3 does not have cStringIO

Closes #296242.

authorRémi Cardona <remi.cardona@logilab.fr>
changesetb84e40272e6d
branchdefault
phasepublic
hiddenno
parent revision#cd034fbb6792 [fi] whitespace fixes
child revision#0e2e70f027e4 [debian] get out of the 19th century
files modified by this revision
test/test_validation.py
# HG changeset patch
# User Rémi Cardona <remi.cardona@logilab.fr>
# Date 1436174199 -7200
# Mon Jul 06 11:16:39 2015 +0200
# Node ID b84e40272e6dcdc71ff400d30ff04e6b9c3f7427
# Parent cd034fbb67926aea10018759579247346dbeaf55
[test] import StringIO from six.moves

Python 3 does not have cStringIO

Closes #296242.

diff --git a/test/test_validation.py b/test/test_validation.py
@@ -16,11 +16,11 @@
1  # You should have received a copy of the GNU Lesser General Public License along
2  # with logilab-constraint. If not, see <http://www.gnu.org/licenses/>.
3  """Validation testing for constraint propagation module"""
4 
5  import sys
6 -from cStringIO import StringIO
7 +from six.moves import StringIO
8 
9  from logilab.common.testlib import TestCase, unittest_main, Tags
10 
11  from logilab.constraint import *
12  from logilab.constraint.propagation import quiet_printer