summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-08 11:54:26 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-08 11:54:26 -0700
commite6cb08c88404d5ebbceaaee38009742f6325158c (patch)
treeba537dced98557b049e2561927764a67fa55fcc2
parent0640655e237d729978c08a7cf1b2bded88a0fd2d (diff)
downloadportage-e6cb08c88404d5ebbceaaee38009742f6325158c.tar.gz
portage-e6cb08c88404d5ebbceaaee38009742f6325158c.tar.bz2
portage-e6cb08c88404d5ebbceaaee38009742f6325158c.zip
Add a note about PORTAGE_PYM_PATH in LazyImportPortageBaselineTestCase.
-rw-r--r--pym/portage/tests/lazyimport/test_lazy_import_portage_baseline.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/tests/lazyimport/test_lazy_import_portage_baseline.py b/pym/portage/tests/lazyimport/test_lazy_import_portage_baseline.py
index 15086ffbd..14ed3a1f8 100644
--- a/pym/portage/tests/lazyimport/test_lazy_import_portage_baseline.py
+++ b/pym/portage/tests/lazyimport/test_lazy_import_portage_baseline.py
@@ -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