python / cpython

The Python programming language
https://www.python.org
Other
63.13k stars 30.22k forks source link

test_xpickle fails on Windows: invokes pythonx.y instead of pythonxy #53881

Closed 5bf59da1-86ec-4384-896c-68455c40bd5f closed 11 years ago

5bf59da1-86ec-4384-896c-68455c40bd5f commented 14 years ago
BPO 9672
Nosy @birkenfeld, @pitrou, @avassalotti

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: ```python assignee = None closed_at = created_at = labels = ['type-bug', 'tests', 'OS-windows'] title = 'test_xpickle fails on Windows: invokes pythonx.y instead of pythonxy' updated_at = user = 'https://bugs.python.org/srid' ``` bugs.python.org fields: ```python activity = actor = 'georg.brandl' assignee = 'none' closed = True closed_date = closer = 'georg.brandl' components = ['Tests', 'Windows'] creation = creator = 'srid' dependencies = [] files = [] hgrepos = [] issue_num = 9672 keywords = [] message_count = 4.0 messages = ['114798', '114799', '115113', '185433'] nosy_count = 5.0 nosy_names = ['georg.brandl', 'collinwinter', 'pitrou', 'alexandre.vassalotti', 'srid'] pr_nums = [] priority = 'normal' resolution = 'works for me' stage = None status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue9672' versions = ['Python 2.7'] ```

5bf59da1-86ec-4384-896c-68455c40bd5f commented 14 years ago

test_xpickle 'python2.4' is not recognized as an internal or external command, operable program or batch file. 'python2.5' is not recognized as an internal or external command, operable program or batch file. 'python2.6' is not recognized as an internal or external command, operable program or batch file.

On Windows, that should be python24.exe (not python2.4.exe).

5bf59da1-86ec-4384-896c-68455c40bd5f commented 14 years ago

On Windows, that should be python24.exe (not python2.4.exe).

Hmm, that is only true for ActivePython. For detecting Python interpreters installed on the system, a simple approach could be to hardcode the full paths, as done by tox: http://code.google.com/p/pytox/source/browse/tox/_venv.py#242

pitrou commented 14 years ago

This is not a failure, it just indicates that the tests get skipped. While I agree that ideally the tests should be able to run on all systems, it should also be noted that the pickle protocols are (supposed to be) platform-agnostic and, therefore, it is not mandatory to run cross-compatibility tests on all platforms.

birkenfeld commented 11 years ago

Closing for reasons Antoine stated.