diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-01-12 18:46:24 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-01-12 18:46:24 -0800 |
commit | 7ab1ca09de0421b574df1ff9aa8ef5077e16b9ea (patch) | |
tree | 28f754bcf5d649ab3a9f4a46664d5a865d48ddec /pym/portage | |
parent | 5438bb29c996d777b6343515995176912a7c137f (diff) | |
download | portage-7ab1ca09de0421b574df1ff9aa8ef5077e16b9ea.tar.gz portage-7ab1ca09de0421b574df1ff9aa8ef5077e16b9ea.tar.bz2 portage-7ab1ca09de0421b574df1ff9aa8ef5077e16b9ea.zip |
test_config: fix AttributeError: 'str'
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/tests/ebuild/test_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |