From: Zac Medico Date: Thu, 15 Sep 2011 02:55:03 +0000 (-0700) Subject: Handle non-existent thin manifest in tests. X-Git-Tag: v2.2.0_alpha58~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30d598768326128d5e6c22983fb456eb1085cf7e;p=portage.git Handle non-existent thin manifest in tests. --- diff --git a/pym/portage/tests/ebuild/test_config.py b/pym/portage/tests/ebuild/test_config.py index ff3935b29..3d0be19e4 100644 --- a/pym/portage/tests/ebuild/test_config.py +++ b/pym/portage/tests/ebuild/test_config.py @@ -229,9 +229,7 @@ class ConfigTestCase(TestCase): playground = ResolverPlayground(ebuilds=ebuilds, repo_configs=repo_configs) new_manifest_file = os.path.join(playground.repo_dirs["new_repo"], "dev-libs", "A", "Manifest") - f = open(new_manifest_file) - self.assertEqual(len(list(f)), 0) - f.close() + self.assertEqual(os.path.exists(new_manifest_file), False) old_manifest_file = os.path.join(playground.repo_dirs["old_repo"], "dev-libs", "A", "Manifest") f = open(old_manifest_file)