Staging
v0.5.1
https://github.com/python/cpython
Revision af956f1d4805e7a78bca211cb8246661edcba535 authored by Benjamin Peterson on 22 October 2008, 21:19:41 UTC, committed by Benjamin Peterson on 22 October 2008, 21:19:41 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67000 | benjamin.peterson | 2008-10-22 16:16:34 -0500 (Wed, 22 Oct 2008) | 1 line

  fix #4150: pdb's up command didn't work for generators in post-mortem
........
1 parent 3e80861
Raw File
Tip revision: af956f1d4805e7a78bca211cb8246661edcba535 authored by Benjamin Peterson on 22 October 2008, 21:19:41 UTC
Merged revisions 67000 via svnmerge from
Tip revision: af956f1
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)

import os

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 regrtest # Standard Python tester.
regrtest.main()
back to top