summaryrefslogtreecommitdiff
path: root/testing/check-pysqlcipher.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/check-pysqlcipher.py')
-rwxr-xr-xtesting/check-pysqlcipher.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/testing/check-pysqlcipher.py b/testing/check-pysqlcipher.py
deleted file mode 100755
index 4202b13b..00000000
--- a/testing/check-pysqlcipher.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import tempfile
-
-from pysqlcipher import dbapi2
-
-
-def have_usleep():
- fname = tempfile.mktemp()
- db = dbapi2.connect(fname)
- cursor = db.cursor()
- cursor.execute('PRAGMA compile_options;')
- options = map(lambda t: t[0], cursor.fetchall())
- db.close()
- os.unlink(fname)
- return u'HAVE_USLEEP' in options
-
-
-if __name__ == '__main__':
- if not have_usleep():
- raise Exception('pysqlcipher was not built with HAVE_USLEEP flag.')
- print "All ok, pysqlcipher was built with HAVE_USLEEP flag. :-)"