aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-14 10:01:55 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-14 10:01:55 -0700
commit08210f47637c81748615ab7ae1def130e4d23933 (patch)
tree7f5cb2895ffb8c577ab4a68e8d7c83723e76c1cb /pym/portage/tests/ebuild/test_ipc_daemon.py
parentMove 'phase' attribute to AbstractEbuildProcess from subclasses, so (diff)
downloadportage-08210f47637c81748615ab7ae1def130e4d23933.tar.gz
portage-08210f47637c81748615ab7ae1def130e4d23933.tar.bz2
portage-08210f47637c81748615ab7ae1def130e4d23933.zip
Move PORTAGE_PYTHON setting to doebuild_environment() so that it
doesn't pollute os.environ.
Diffstat (limited to 'pym/portage/tests/ebuild/test_ipc_daemon.py')
-rw-r--r--pym/portage/tests/ebuild/test_ipc_daemon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/tests/ebuild/test_ipc_daemon.py b/pym/portage/tests/ebuild/test_ipc_daemon.py
index b03409d0f..f0d072aed 100644
--- a/pym/portage/tests/ebuild/test_ipc_daemon.py
+++ b/pym/portage/tests/ebuild/test_ipc_daemon.py
@@ -1,6 +1,7 @@
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import sys
import shutil
import tempfile
from portage import os
@@ -19,7 +20,7 @@ class IpcDaemonTestCase(TestCase):
tmpdir = tempfile.mkdtemp()
try:
env = {}
- env['PORTAGE_PYTHON'] = os.environ['PORTAGE_PYTHON']
+ env['PORTAGE_PYTHON'] = sys.executable
env['PORTAGE_BIN_PATH'] = PORTAGE_BIN_PATH
env['PORTAGE_PYM_PATH'] = PORTAGE_PYM_PATH
env['PORTAGE_BUILDDIR'] = tmpdir