Browse Source

[master] move down import sqlite3

Jelte Jansen 13 years ago
parent
commit
cf5e4481b1
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/bin/xfrin/tests/xfrin_test.py

+ 7 - 1
src/bin/xfrin/tests/xfrin_test.py

@@ -17,7 +17,6 @@ import unittest
 import re
 import shutil
 import socket
-import sqlite3
 import sys
 import io
 from isc.testutils.tsigctx_mock import MockTSIGContext
@@ -25,6 +24,13 @@ from xfrin import *
 import xfrin
 from isc.xfrin.diff import Diff
 import isc.log
+# If we use any python library that is basically a wrapper for
+# a library we use as well (like sqlite3 in our datasources),
+# we must make sure we import ours first; If we have special
+# rpath or libtool rules to pick the correct version, python might
+# choose the wrong one first, if those rules aren't hit first.
+# This would result in missing symbols later.
+import sqlite3
 
 #
 # Commonly used (mostly constant) test parameters