diff options
author | efkin <efkin@riseup.net> | 2017-03-13 20:20:19 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-03-17 17:52:56 +0100 |
commit | ba3fcb08eafd389bdbf0ab9c59577a25c8d8126d (patch) | |
tree | 24f41600853a07318a035c5de4fc11f8e10fdd6a /testing/test_soledad/u1db_tests/__init__.py | |
parent | 1034d3107b57f03d7ed2257aef39cede2f6686ef (diff) |
[test] Prepare tests for python3 compatibility
Diffstat (limited to 'testing/test_soledad/u1db_tests/__init__.py')
-rw-r--r-- | testing/test_soledad/u1db_tests/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
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 |