Using unittest2 backport

This commit is contained in:
baztian
2013-10-03 20:19:00 +02:00
parent 80f0e00b60
commit d07cebf1d8
32 changed files with 8182 additions and 3 deletions
@@ -18,10 +18,11 @@
# <http://www.gnu.org/licenses/>.
from os import path
from unittest import TestCase
import jaydebeapi
import sys
import unittest2 as unittest
this_dir = path.dirname(path.abspath(__file__))
jar_dir = path.abspath(path.join(this_dir, '..', '..',
'build', 'lib'))
@@ -31,7 +32,7 @@ insert_sql = path.join(this_dir, 'data', 'insert.sql')
def is_jython():
return sys.platform.lower().startswith('java')
class IntegrationTest(TestCase):
class IntegrationTest(unittest.TestCase):
def sql_file(self, filename):
f = open(filename, 'r')
@@ -62,7 +63,7 @@ class IntegrationTest(TestCase):
# http://www.zentus.com/sqlitejdbc/
conn = jaydebeapi.connect('org.sqlite.JDBC',
'jdbc:sqlite::memory:',
path.join(jar_dir, 'sqlitejdbc-v056.jar'),)
path.join(jar_dir, 'sqlitejdbc-v056.jar'))
# http://hsqldb.org/
# conn = jaydebeapi.connect('org.hsqldb.jdbcDriver',
# ['jdbc:hsqldb:mem:.', 'SA', ''],