diff options
author | 2010-05-29 03:44:44 -0300 | |
---|---|---|
committer | 2010-05-29 03:44:44 -0300 | |
commit | b33ba104163340f6c568ffc426a80e207672c114 (patch) | |
tree | 732e3313aa2577381df6cdbe364d49add1a6b76f /tests | |
parent | fixed tests to the module g_octave.description_tree. tests are now using the ... (diff) | |
download | g-octave-b33ba104163340f6c568ffc426a80e207672c114.tar.gz g-octave-b33ba104163340f6c568ffc426a80e207672c114.tar.bz2 g-octave-b33ba104163340f6c568ffc426a80e207672c114.zip |
removed the method to create a g_octave.DescriptionTree object from the module file tests/utils.py
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utils.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/utils.py b/tests/utils.py index 32f8802..6288333 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -18,24 +18,6 @@ import tempfile from g_octave import config -def create_description_tree(packages): - # 'packages' is a list of tuples, like this: - # [(category, name, version)] - description_file = os.path.join( - os.path.dirname(os.path.abspath(__file__)), 'DESCRIPTION' - ) - - # creating a temporary DESCRIPTION's tree - tree_dir = tempfile.mkdtemp() - for cat, pkg, ver in packages: - temp_path = os.path.join(tree_dir, cat, pkg+'-'+ver) - os.makedirs(temp_path) - shutil.copy( - description_file, - os.path.join(temp_path, 'DESCRIPTION') - ) - return tree_dir - def create_env(): """returns a tuple with the *g_octave.config* object and the path of the temporary config and directory |