diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-02 08:26:24 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-02 08:26:24 +0000 |
commit | 4712a37b93832933a46376ee99339f9040ba3670 (patch) | |
tree | 8a3de8500925061b0f2368fae2d50159dbea206f /scipy/weave/tests/test_ast_tools.py | |
parent | b5ba0003def4cfa43b29d29df8f085d09609707b (diff) | |
download | numpy-4712a37b93832933a46376ee99339f9040ba3670.tar.gz |
Moved weave to scipy
Diffstat (limited to 'scipy/weave/tests/test_ast_tools.py')
-rw-r--r-- | scipy/weave/tests/test_ast_tools.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/scipy/weave/tests/test_ast_tools.py b/scipy/weave/tests/test_ast_tools.py deleted file mode 100644 index efb2dc8b2..000000000 --- a/scipy/weave/tests/test_ast_tools.py +++ /dev/null @@ -1,31 +0,0 @@ - -from scipy.testing import * -set_package_path() -from weave import ast_tools -restore_path() - -set_local_path() -from weave_test_utils import * -restore_path() - -class test_harvest_variables(ScipyTestCase): - """ Not much testing going on here, but - at least it is a flame test. - """ - def generic_test(self,expr,desired): - import parser - ast_list = parser.suite(expr).tolist() - actual = ast_tools.harvest_variables(ast_list) - print_assert_equal(expr,actual,desired) - - def check_simple_expr(self): - """convert simple expr to blitz - - a[:1:2] = b[:1+i+2:] - """ - expr = "a[:1:2] = b[:1+i+2:]" - desired = ['a','b','i'] - self.generic_test(expr,desired) - -if __name__ == "__main__": - ScipyTest().run() |