Staging
v0.8.1
https://github.com/python/cpython
Revision 65a5eff67474703329477b070d9c081fee17c69c authored by Miss Islington (bot) on 05 December 2018, 01:18:57 UTC, committed by Victor Stinner on 05 December 2018, 01:18:57 UTC
On Travis CI, FTP tests of test_urllib2net randomly fail with "425
Security: Bad IP connecting".

test.pythoninfo now also logs TRAVIS environment variable.
(cherry picked from commit c11b3b19a5b022c6c229043d37f9a9fd06f22500)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 70ca3fc
Raw File
Tip revision: 65a5eff67474703329477b070d9c081fee17c69c authored by Miss Islington (bot) on 05 December 2018, 01:18:57 UTC
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (GH-10909)
Tip revision: 65a5eff
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