summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-24 11:42:59 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-24 11:42:59 -0700
commit398cc46ca2893689997eae5940d13e87284f8237 (patch)
treeddfc912185f320063f2a5be99018dec54a43de3f
parent929b7578130a7cb036a1d5c704868a8e39dd35de (diff)
downloadportage-398cc46ca2893689997eae5940d13e87284f8237.tar.gz
portage-398cc46ca2893689997eae5940d13e87284f8237.tar.bz2
portage-398cc46ca2893689997eae5940d13e87284f8237.zip
Use deepcopy for LicenseManger, since I remove clone support from thev2.2_rc69
constructor.
-rw-r--r--pym/portage/tests/ebuild/test_config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/tests/ebuild/test_config.py b/pym/portage/tests/ebuild/test_config.py
index ef4b585a3..6b655daf0 100644
--- a/pym/portage/tests/ebuild/test_config.py
+++ b/pym/portage/tests/ebuild/test_config.py
@@ -1,6 +1,8 @@
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import copy
+
import portage
from portage import os
from portage.dep import ExtendedAtomDict
@@ -62,7 +64,7 @@ class ConfigTestCase(TestCase):
lic_man.parse_license_groups(license_group_locations)
lic_man.read_config_files(pkg_license)
- lic_man_backup = LicenseManager(clone=lic_man)
+ lic_man_backup = copy.deepcopy(lic_man)
self.assertEqual(lic_man._accept_license_str, None)
self.assertEqual(lic_man._accept_license_str, lic_man_backup._accept_license_str)