New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_osx_env failing #49658
Comments
Mac OS 10.4 PPC debug build test_osx_env
[31492 refs]
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8
test test_osx_env failed -- Traceback (most recent call last):
File "/temp/python/py3k/Lib/test/test_osx_env.py", line 27, in
test_pythonexecutable_sets_sys_executable
self._check_sys('PYTHONEXECUTABLE', '==', 'sys.executable')
File "/temp/python/py3k/Lib/test/test_osx_env.py", line 24, in _check_sys
self.assertEqual(rc, 2, "expected %s %s %s" % (ev, cond, sv))
AssertionError: expected PYTHONEXECUTABLE == sys.executable |
Is this a standard unix build or a framework build? |
It appears the test doesn't work correctly for non-framework builds, |
ANALYSIS In a non-framework build, when PYTHONEXECUTABLE is set to a SOLUTION Simplify the test and supply appropriate values so the test APPLIES py3k, 3.0 |
Ned: IMHO your patch is not correct. test_osx_env tests behaviour that's The easiest way to accomplish that is to change the test in if sys.platform == 'darwin' and
sysconfig.get_config_var('WITH_NEXT_FRAMEWORK'): (with an "from distutils import sysconfig" statement just above the I will commit this fix when I've actually tested it. |
Committed my fix as r70179 (3.x) and r70180 (30-maint). Benjamin: can you confirm this actually fixes the issue with a non- |
I don't have strong feelings about it one way or the other. As far as I |
The effect on sys.executable is always present, the test is only valid for |
Thumbs up here! Thanks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: