aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_exceptions.py
Commit message (Collapse)AuthorAge
...
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-30
| | | | | | | | 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.
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-16
| | | | order in which the tests are normally run.
* Enable support for jython:Finn Bock2001-12-08
| | | | | | | | | 1. Acknowledge the welknown difference that jython allows continue in the finally clause. 2. Avoid using _testcapi when running with jython. This closes patch "[ #490417 ] Jython and test_exceptions"
* Add tests for new PyErr_NormalizeException() behaviorJeremy Hylton2001-09-26
| | | | | | | | | | | | Add raise_exception() to the _testcapi module. It isn't a test, but the C API exists only to support test_exceptions. raise_exception() takes two arguments -- an exception class and an integer specifying how many arguments it should be called with. test_exceptions uses BadException() to test the interpreter's behavior when there is a problem instantiating the exception. test_capi1() calls it with too many arguments. test_capi2() causes an exception to be raised in the Python code of the constructor.
* Turn OverflowWarning into an error locally, in order to make theGuido van Rossum2001-08-23
| | | | OverflowError test succeed.
* reload(exceptions) should not raise an ImportError, but should actBarry Warsaw2001-08-13
| | | | just like reload(sys). Test that this is so. Closes SF bug #422004.
* Allow 'continue' inside 'try' clauseJeremy Hylton2001-02-01
| | | | SF patch 102989 by Thomas Wouters
* Use 4-space indents.Fred Drake2000-10-23
|
* Add test cases to make sure we get the right SyntaxError message forFred Drake2000-09-08
| | | | various illegal uses of "continue".
* Applying patch #100994 to allow JPython to use more of the standardBarry Warsaw2000-09-01
| | | | | | | | | | | | | Python test suite. Specifically, - import time instead of strop in test_b1 - test for ClassType of exceptions using isinstance instead of equality in test_exceptions - remove __builtins__ from dir() output in test_pkg test_pkg output needs to be regenerated.
* Create two new exceptions: IndentationError and TabError. These areFred Drake2000-07-11
| | | | | | | used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
* add minimal test of exception use. verify that each exception can beJeremy Hylton2000-06-20
| | | | raised, caught, and converted to a string.
* Added a test to catch the base class.Barry Warsaw2000-05-25
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-26
|
* Expanded r() function to handle class exceptions.Barry Warsaw1997-08-29
|
* exec() -> execGuido van Rossum1995-08-11
|
* Unmerged except and finally clausesGuido van Rossum1992-05-06
|
* Initial revisionGuido van Rossum1992-01-27