This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2017-07-25.12:41:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500986510.69.0.620251860274.issue31030@psf.upfronthosting.co.za>
In-reply-to
Content
test_executable in Lib/test/test_sys.py tests that sys.executable is absolute. But this test is too strong, it fails if sys.executable is not normalized.

$ Lib/../python -m test test_sys
Run tests sequentially
0:00:00 load avg: 0.39 [1/1] test_sys
test test_sys failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_sys.py", line 649, in test_executable
    self.assertEqual(os.path.abspath(sys.executable), sys.executable)
AssertionError: '/home/serhiy/py/cpython/python' != '/home/serhiy/py/cpython/Lib/../python'
- /home/serhiy/py/cpython/python
+ /home/serhiy/py/cpython/Lib/../python
?                         +++++++


test_sys failed

1 test failed:
    test_sys

Total duration: 2 sec
Tests result: FAILURE

I don't know what is wrong: the value of sys.executable or the test.
History
Date User Action Args
2017-07-25 12:41:50serhiy.storchakasetrecipients: + serhiy.storchaka
2017-07-25 12:41:50serhiy.storchakasetmessageid: <1500986510.69.0.620251860274.issue31030@psf.upfronthosting.co.za>
2017-07-25 12:41:50serhiy.storchakalinkissue31030 messages
2017-07-25 12:41:50serhiy.storchakacreate