test_config: fix AttributeError: 'str'
authorZac Medico <zmedico@gentoo.org>
Fri, 13 Jan 2012 02:46:24 +0000 (18:46 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 13 Jan 2012 02:46:24 +0000 (18:46 -0800)
pym/portage/tests/ebuild/test_config.py

index 35694ede74b04c2e51d3c38aaf5d6de04feff9ac..a1ba202d54d0340131067b2f0722cc659123dd84 100644 (file)
@@ -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