Add a note about PORTAGE_PYM_PATH in LazyImportPortageBaselineTestCase.
authorZac Medico <zmedico@gentoo.org>
Wed, 8 Sep 2010 18:54:26 +0000 (11:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 8 Sep 2010 18:54:26 +0000 (11:54 -0700)
pym/portage/tests/lazyimport/test_lazy_import_portage_baseline.py

index 15086ffbd33097104fb30a18276d1c46e4779bd1..14ed3a1f8c0b9cb22f7d6205e67982ba83274806 100644 (file)
@@ -45,6 +45,10 @@ sys.stdout.write(" ".join(k for k in sys.modules
                        pythonpath = ':' + pythonpath
                pythonpath = PORTAGE_PYM_PATH + pythonpath
                env[pythonpath] = pythonpath
+
+               # If python is patched to insert the path of the
+               # currently installed portage module into sys.path,
+               # then the above PYTHONPATH override doesn't help.
                env['PORTAGE_PYM_PATH'] = PORTAGE_PYM_PATH
 
                scheduler = PollScheduler().sched_iface