diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2003-10-25 21:51:46 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2003-10-25 21:51:46 +0000 |
commit | 4d1b593225e392072f5f684f9fcac8c9efb21916 (patch) | |
tree | 1a15581cca21583de7fb7662ec1adb87e2c5d254 /weave/tests/test_build_tools.py | |
parent | 95a197aa0e55b64e984f36482dfc106161ab8a1d (diff) | |
download | numpy-4d1b593225e392072f5f684f9fcac8c9efb21916.tar.gz |
New import hooks are applied to weave. Clean up.
Diffstat (limited to 'weave/tests/test_build_tools.py')
-rw-r--r-- | weave/tests/test_build_tools.py | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/weave/tests/test_build_tools.py b/weave/tests/test_build_tools.py index 9459675ea..9c43c5a4c 100644 --- a/weave/tests/test_build_tools.py +++ b/weave/tests/test_build_tools.py @@ -5,10 +5,9 @@ import unittest import os, sys, tempfile -from scipy_distutils.misc_util import add_grandparent_to_path, restore_path - -add_grandparent_to_path(__name__) -import build_tools +from scipy_test.testing import * +set_package_path() +from weave import build_tools restore_path() def is_writable(val): @@ -63,21 +62,6 @@ class test_configure_sys_argv(unittest.TestCase): argv.index('--compiler='+compiler) build_tools.restore_sys_argv() assert(pre_argv == sys.argv[:]) - -def test_suite(level = 1): - suites = [] - if level > 0: - suites.append( unittest.makeSuite(test_configure_build_dir,'check_') ) - suites.append( unittest.makeSuite(test_configure_temp_dir,'check_') ) - suites.append( unittest.makeSuite(test_configure_sys_argv,'check_') ) - total_suite = unittest.TestSuite(suites) - return total_suite - -def test(level=10): - all_tests = test_suite(level) - runner = unittest.TextTestRunner() - runner.run(all_tests) - return runner if __name__ == "__main__": - test()
\ No newline at end of file + ScipyTest('weave.build_tools').run() |