Handle non-existent thin manifest in tests.
authorZac Medico <zmedico@gentoo.org>
Thu, 15 Sep 2011 02:55:03 +0000 (19:55 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 15 Sep 2011 02:55:03 +0000 (19:55 -0700)
pym/portage/tests/ebuild/test_config.py

index ff3935b295258d5c6742fe5f0ce196b6c0db25c2..3d0be19e4dfc7ff08fc07e59b12f1ca54f04791d 100644 (file)
@@ -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)