From 988861a2d84cb184aa38e49e8a20a8f105f853eb Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 13 Nov 2010 19:50:25 +0000 Subject: [PATCH] runtests.py script dropped. It was broken as the distutils changed the name of the build dir somewhere along the way. Use ``make runtests`` instead. --- runtests.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 runtests.py diff --git a/runtests.py b/runtests.py deleted file mode 100644 index 6124fad6..00000000 --- a/runtests.py +++ /dev/null @@ -1,26 +0,0 @@ -"""A harness to run the psycopg test suite. - -If the distutils build directory exists, it will be inserted into the -path so that the tests run against that version of psycopg. -""" - -from distutils.util import get_platform -import os -import sys -import unittest - -# Insert the distutils build directory into the path, if it exists. -platlib = os.path.join(os.path.dirname(__file__), 'build', - 'lib.%s-%s' % (get_platform(), sys.version[0:3])) -if os.path.exists(platlib): - sys.path.insert(0, platlib) - -import psycopg2 -import tests - -def test_suite(): - return tests.test_suite() - -if __name__ == '__main__': - unittest.main(defaultTest='test_suite') -