From e06ed67ae02b80d4c3965f74427b45c5d39e8e7b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 6 Jun 2011 19:12:29 -0400 Subject: [PATCH] Disable test_find_files in test_portage_utils.py. find_files has been commented out since this project was moved into SVN. --- tests/test_portage_utils.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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)) -- 2.26.2