diff options
Diffstat (limited to 'pym/portage/tests')
-rw-r--r-- | pym/portage/tests/env/config/test_PackageMaskFile.py | 3 | ||||
-rw-r--r-- | pym/portage/tests/env/config/test_PortageModulesFile.py | 2 | ||||
-rw-r--r-- | pym/portage/tests/util/test_varExpand.py | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/pym/portage/tests/env/config/test_PackageMaskFile.py b/pym/portage/tests/env/config/test_PackageMaskFile.py index ad87d5a56..e8357f7e6 100644 --- a/pym/portage/tests/env/config/test_PackageMaskFile.py +++ b/pym/portage/tests/env/config/test_PackageMaskFile.py @@ -18,7 +18,8 @@ class PackageMaskFileTestCase(TestCase): try: f = PackageMaskFile(self.fname) f.load() - [atom for atom in f.keys() if self.assertTrue(atom in self.atoms)] + for atom in f: + self.assertTrue(atom in self.atoms) finally: self.NukeFile() diff --git a/pym/portage/tests/env/config/test_PortageModulesFile.py b/pym/portage/tests/env/config/test_PortageModulesFile.py index b523cbe7b..03104cff5 100644 --- a/pym/portage/tests/env/config/test_PortageModulesFile.py +++ b/pym/portage/tests/env/config/test_PortageModulesFile.py @@ -18,7 +18,7 @@ class PortageModulesFileTestCase(TestCase): def testPortageModulesFile(self): self.BuildFile() f = PortageModulesFile(self.fname) - for k in f.keys(): + for k in f: self.assertEqual( f[k], self.items[k] ) self.NukeFile() diff --git a/pym/portage/tests/util/test_varExpand.py b/pym/portage/tests/util/test_varExpand.py index ee0f573c9..e4f85ef43 100644 --- a/pym/portage/tests/util/test_varExpand.py +++ b/pym/portage/tests/util/test_varExpand.py @@ -11,7 +11,7 @@ class VarExpandTestCase(TestCase): def testVarExpandPass(self): varDict = { "a":"5", "b":"7", "c":"-5" } - for key in varDict.keys(): + for key in varDict: result = varexpand( "$%s" % key, varDict ) self.failIf( result != varDict[key], |