summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_traceback.py
Commit message (Collapse)AuthorAgeFilesLines
* * Bumped up the sleep() delay to four seconds so this test will runRaymond Hettinger2004-11-011-6/+9
| | | | | | reliably on WinME with FAT32. * Native speaker rewrite of the comment block. * Removed unnecessary backslashes from the multi-line function defintions.
* Bug #1057993: Use sleep() always instead of os.utime() possibly brokenHye-Shik Chang2004-11-011-9/+5
| | | | in some platforms.
* Add a comment explains why we should modify mtime here.Hye-Shik Chang2004-10-271-2/+4
|
* Removed newly redundant embedded import.Tim Peters2004-10-271-1/+0
|
* Whitespace normalization.Tim Peters2004-10-271-1/+1
|
* Paper over bug 1054615 by passing sane values to os.utime().Tim Peters2004-10-271-2/+5
| | | | | | | | | | The underlying bug still exists, but also existed in 2.3.4: import.c's load_source_module() returns NULL if PyOS_GetLastModificationTime() returns -1, but PyOS_GetLastModificationTime() doesn't set any exception when it returns -1, and neither does load_source_module() when it gets back -1. This leads to "SystemError: NULL result without error in PyObject_Call" on an import that fails in this way.
* SF #737473: Show up-to-date source code in tracebacks always.Hye-Shik Chang2004-10-261-0/+41
| | | | | And add an optional argument 'filename' to linecache.checkcache() to enable checking caches per-file.
* Skip the test_nocaret test when running as jython. Jython happens to addFinn Bock2002-11-061-1/+4
| | | | a caret in this case too.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+7
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Fix compileall.py so that it fails on SyntaxErrorsJeremy Hylton2001-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. In the test suite, rename nocaret.py and test_future[3..7].py to start with badsyntax_nocaret.py and badsyntax_future[3..7].py. Update the makefile to skip compilation of these files. Update the tests to use the name names for imports. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
* Whitespace normalization.Tim Peters2001-04-081-2/+2
|
* Test that traceback module works with SyntaxErrors with or without carets.Jeremy Hylton2001-03-211-0/+40