Staging
v0.5.1
https://github.com/python/cpython
Revision 5b8e3a533560c39eb40b2fb950d2b14caacfaf6a authored by Miss Islington (bot) on 11 June 2020, 14:07:39 UTC, committed by GitHub on 11 June 2020, 14:07:39 UTC

The GDB provided by HPE on HP-UX contains a modified version string. Therefore
the tests fail. Adapt the regex to match that string.

Patch by Michael Osipov.

Co-Authored-by: Michael Osipov <michael.osipov@siemens.com>
(cherry picked from commit b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7)

Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 972aba8
Raw File
Tip revision: 5b8e3a533560c39eb40b2fb950d2b14caacfaf6a authored by Miss Islington (bot) on 11 June 2020, 14:07:39 UTC
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
Tip revision: 5b8e3a5
__main__.py
"""Main entry point"""

import sys
if sys.argv[0].endswith("__main__.py"):
    import os.path
    # We change sys.argv[0] to make help message more useful
    # use executable without path, unquoted
    # (it's just a hint anyway)
    # (if you have spaces in your executable you get what you deserve!)
    executable = os.path.basename(sys.executable)
    sys.argv[0] = executable + " -m unittest"
    del os

__unittest = True

from .main import main

main(module=None)
back to top