From ba3fcb08eafd389bdbf0ab9c59577a25c8d8126d Mon Sep 17 00:00:00 2001 From: efkin Date: Mon, 13 Mar 2017 20:20:19 +0100 Subject: [test] Prepare tests for python3 compatibility --- testing/test_soledad/u1db_tests/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'testing/test_soledad/u1db_tests/__init__.py') diff --git a/testing/test_soledad/u1db_tests/__init__.py b/testing/test_soledad/u1db_tests/__init__.py index ba776864..36db548d 100644 --- a/testing/test_soledad/u1db_tests/__init__.py +++ b/testing/test_soledad/u1db_tests/__init__.py @@ -23,11 +23,16 @@ import socket import tempfile import threading import json +import sys +from six import StringIO from wsgiref import simple_server -from pysqlcipher import dbapi2 -from StringIO import StringIO + +if sys.version_info[0] < 3: + from pysqlcipher import dbapi2 +else: + from pysqlcipher3 import dbapi2 import testscenarios from twisted.trial import unittest -- cgit v1.2.3