From: Zac Medico Date: Fri, 13 Jan 2012 02:46:24 +0000 (-0800) Subject: test_config: fix AttributeError: 'str' X-Git-Tag: v2.2.0_alpha85~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ab1ca09de0421b574df1ff9aa8ef5077e16b9ea;p=portage.git test_config: fix AttributeError: 'str' --- diff --git a/pym/portage/tests/ebuild/test_config.py b/pym/portage/tests/ebuild/test_config.py index 35694ede7..a1ba202d5 100644 --- a/pym/portage/tests/ebuild/test_config.py +++ b/pym/portage/tests/ebuild/test_config.py @@ -3,6 +3,7 @@ import portage from portage import os +from portage.dep import Atom from portage.package.ebuild.config import config from portage.package.ebuild._config.LicenseManager import LicenseManager from portage.tests import TestCase @@ -24,7 +25,7 @@ class ConfigTestCase(TestCase): settings = config(clone=playground.settings) result = playground.run(["=dev-libs/A-1"]) pkg, existing_node = result.depgraph._select_package( - playground.eroot, "=dev-libs/A-1") + playground.eroot, Atom("=dev-libs/A-1")) settings.setcpv(pkg) # clone after setcpv tests deepcopy of LazyItemsDict