mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix for issue #5408. This only enables test_osx_env when the current build
is actually a framework build on OSX (the only environment where this test is valid).
This commit is contained in:
parent
5f734f1b13
commit
8954cd36ba
1 changed files with 3 additions and 1 deletions
|
|
@ -27,7 +27,9 @@ class OSXEnvironmentVariableTestCase(unittest.TestCase):
|
||||||
self._check_sys('PYTHONEXECUTABLE', '==', 'sys.executable')
|
self._check_sys('PYTHONEXECUTABLE', '==', 'sys.executable')
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
if sys.platform == 'darwin':
|
from distutils import sysconfig
|
||||||
|
|
||||||
|
if sys.platform == 'darwin' and sysconfig.get_config_var('WITH_NEXT_FRAMEWORK'):
|
||||||
run_unittest(OSXEnvironmentVariableTestCase)
|
run_unittest(OSXEnvironmentVariableTestCase)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue