From: W. Trevor King Date: Mon, 6 Jun 2011 23:12:29 +0000 (-0400) Subject: Disable test_find_files in test_portage_utils.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e06ed67ae02b80d4c3965f74427b45c5d39e8e7b;p=g-pypi.git Disable test_find_files in test_portage_utils.py. find_files has been commented out since this project was moved into SVN. --- diff --git a/tests/test_portage_utils.py b/tests/test_portage_utils.py index 09b77db..12a4ccd 100755 --- a/tests/test_portage_utils.py +++ b/tests/test_portage_utils.py @@ -1,12 +1,17 @@ import os -from g_pypi.portage_utils import find_files, find_egg_info_dir +#from g_pypi.portage_utils import find_files +from g_pypi.portage_utils import find_egg_info_dir -def test_find_files(): - print [egg for egg in find_files("passwd", "/etc")] + +#def test_find_files(): +# print [egg for egg in find_files("passwd", "/etc")] def test_find_egg_info_dir(): + # TODO: need an ebuild working directory to test udir = "/var/tmp/portage/dev-python/mako-0.1.7/work/Mako-0.1.7" - assert find_egg_info_dir(udir) == os.path.join(udir, "lib") + egg_info_dir = find_egg_info_dir(udir) + if egg_info_dir != os.path.join(udir, "lib"): + raise Exception(find_egg_info_dir(udir))