Message270223
| Author |
blarsen |
| Recipients |
blarsen, dino.viehland, docs@python, eli.bendersky, eric.araujo, eric.snow, eryksun, flox, ned.deily, petri.lehtinen, pitrou, pjenvey, python-dev, ronaldoussoren, schmir, vstinner |
| Date |
2016年07月12日.02:59:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1468292348.31.0.449927782551.issue13402@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
@eryksun, you are right! The output *is* an absolute path as far as `os.path.isabs` is concerned.
@ned.deily, you are right about my example --- I transcribed it wrong, and it should be `-c`.
The system in question is not a Mac OS system, but a Linux system with newer Python versions than what come with the system installed to /opt/local. These are compiled from source, but without any modifications.
I'm commenting here because I'm seeing the `test_sys` test from the regression suite fail in a slightly modified version of Python that ships with a product. In particular, in Lib/test/test_sys.py around line 640, we have this:
@unittest.skipIf(sys.base_prefix != sys.prefix,
'Test is not venv-compatible')
def test_executable(self):
# sys.executable should be absolute
self.assertEqual(os.path.abspath(sys.executable), sys.executable)
Yes, /opt/local/bin/../bin/python3.5 is an absolute path as far as `os.path.isabs` is concerned, but `os.path.abspath('/opt/local/bin/../bin/python3.5')` gives '/opt/local/bin/python3.5', and the test fails. So maybe the documentation is fine but the test is wrong? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年07月12日 02:59:08 | blarsen | set | recipients:
+ blarsen, ronaldoussoren, pitrou, vstinner, pjenvey, schmir, ned.deily, eric.araujo, dino.viehland, eli.bendersky, flox, docs@python, python-dev, eric.snow, petri.lehtinen, eryksun |
| 2016年07月12日 02:59:08 | blarsen | set | messageid: <1468292348.31.0.449927782551.issue13402@psf.upfronthosting.co.za> |
| 2016年07月12日 02:59:08 | blarsen | link | issue13402 messages |
| 2016年07月12日 02:59:07 | blarsen | create |
|