1
"""A harness to run the psycopg test suite.
3
If the distutils build directory exists, it will be inserted into the
4
path so that the tests run against that version of psycopg.
7
from distutils.util import get_platform
12
# Insert the distutils build directory into the path, if it exists.
13
platlib = os.path.join(os.path.dirname(__file__), 'build',
14
'lib.%s-%s' % (get_platform(), sys.version[0:3]))
15
if os.path.exists(platlib):
16
sys.path.insert(0, platlib)
22
return tests.test_suite()
24
if __name__ == '__main__':
25
unittest.main(defaultTest='test_suite')