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_standard_array_spec.py | |
parent | b5ba0003def4cfa43b29d29df8f085d09609707b (diff) | |
download | numpy-4712a37b93832933a46376ee99339f9040ba3670.tar.gz |
Moved weave to scipy
Diffstat (limited to 'scipy/weave/tests/test_standard_array_spec.py')
-rw-r--r-- | scipy/weave/tests/test_standard_array_spec.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/scipy/weave/tests/test_standard_array_spec.py b/scipy/weave/tests/test_standard_array_spec.py deleted file mode 100644 index 3688857fe..000000000 --- a/scipy/weave/tests/test_standard_array_spec.py +++ /dev/null @@ -1,44 +0,0 @@ - -from scipy.base import * -from scipy.testing import * -set_package_path() -from weave import standard_array_spec -restore_path() - -def remove_whitespace(in_str): - import string - out = string.replace(in_str," ","") - out = string.replace(out,"\t","") - out = string.replace(out,"\n","") - return out - -def print_assert_equal(test_string,actual,desired): - """this should probably be in scipy_test.testing - """ - import pprint - try: - assert(actual == desired) - except AssertionError: - import cStringIO - msg = cStringIO.StringIO() - msg.write(test_string) - msg.write(' failed\nACTUAL: \n') - pprint.pprint(actual,msg) - msg.write('DESIRED: \n') - pprint.pprint(desired,msg) - raise AssertionError, msg.getvalue() - -class test_array_converter(ScipyTestCase): - def check_type_match_string(self): - s = standard_array_spec.array_converter() - assert( not s.type_match('string') ) - def check_type_match_int(self): - s = standard_array_spec.array_converter() - assert(not s.type_match(5)) - def check_type_match_array(self): - s = standard_array_spec.array_converter() - assert(s.type_match(arange(4))) - -if __name__ == "__main__": - ScipyTest().run() - |