diff options
| author | Eric Jones <eric@enthought.com> | 2002-01-13 08:52:34 +0000 |
|---|---|---|
| committer | Eric Jones <eric@enthought.com> | 2002-01-13 08:52:34 +0000 |
| commit | b5c77e2b6dbc499230f59cab8d6ea55938ecf818 (patch) | |
| tree | 7b999087ca55dfe18fe2ba60eb3f075f285a79b2 /weave/tests | |
| parent | 941538268cefd76c0c8171c89ff7714cdf619f13 (diff) | |
| download | numpy-b5c77e2b6dbc499230f59cab8d6ea55938ecf818.tar.gz | |
distutils move_file has bug -- no global name errno. back to using rename...
Diffstat (limited to 'weave/tests')
| -rw-r--r-- | weave/tests/weave_test_utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/weave/tests/weave_test_utils.py b/weave/tests/weave_test_utils.py index f6f2c0777..d3c3bf19c 100644 --- a/weave/tests/weave_test_utils.py +++ b/weave/tests/weave_test_utils.py @@ -51,7 +51,9 @@ def clear_temp_catalog(): backup_dir =tempfile.mktemp() os.mkdir(backup_dir) for file in temp_catalog_files(): - move_file(file,backup_dir) + d,f = os.path.split(file) + backup = os.path.join(backup_dir,f) + os.rename(file,backup) def restore_temp_catalog(): """ Remove any catalog from the temp dir @@ -64,7 +66,7 @@ def restore_temp_catalog(): dst_file = os.path.join(cat_dir, f) if os.path.exists(dst_file): os.remove(dst_file) - move_file(file,dst_file) + os.rename(file,dst_file) os.rmdir(backup_dir) backup_dir = None |
