Staging
v0.8.1
https://github.com/python/cpython
Revision 066394018a8463643cc63d933493f0afa99d72cc authored by Victor Stinner on 04 December 2020, 15:23:56 UTC, committed by GitHub on 04 December 2020, 15:23:56 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb
10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
1 parent eaccc12
Raw File
Tip revision: 066394018a8463643cc63d933493f0afa99d72cc authored by Victor Stinner on 04 December 2020, 15:23:56 UTC
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
Tip revision: 0663940
testpy.py
import sys

# This is a test module for Python.  It looks in the standard
# places for various *.py files.  If these are moved, you must
# change this module too.

try:
    import os
except:
    print("""Could not import the standard "os" module.
  Please check your PYTHONPATH environment variable.""")
    sys.exit(1)

try:
    import symbol
except:
    print("""Could not import the standard "symbol" module.  If this is
  a PC, you should add the dos_8x3 directory to your PYTHONPATH.""")
    sys.exit(1)

for dir in sys.path:
    file = os.path.join(dir, "os.py")
    if os.path.isfile(file):
        test = os.path.join(dir, "test")
        if os.path.isdir(test):
            # Add the "test" directory to PYTHONPATH.
            sys.path = sys.path + [test]

import libregrtest # Standard Python tester.
libregrtest.main()
back to top