summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #734231: Update RiscOS support. In particular, correctMartin v. Löwis2003-05-101-3/+3
| | | | riscospath.extsep, and use os.extsep throughout.
* 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.
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-161-2/+6
| | | | order in which the tests are normally run.
* Enable support for jython:Finn Bock2001-12-081-4/+11
| | | | | | | | | 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-261-0/+35
| | | | | | | | | | | | 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-231-0/+3
| | | | OverflowError test succeed.
* reload(exceptions) should not raise an ImportError, but should actBarry Warsaw2001-08-131-0/+8
| | | | just like reload(sys). Test that this is so. Closes SF bug #422004.
* Allow 'continue' inside 'try' clauseJeremy Hylton2001-02-011-19/+2
| | | | SF patch 102989 by Thomas Wouters
* Use 4-space indents.Fred Drake2000-10-231-8/+8
|
* Add test cases to make sure we get the right SyntaxError message forFred Drake2000-09-081-0/+49
| | | | various illegal uses of "continue".
* Applying patch #100994 to allow JPython to use more of the standardBarry Warsaw2000-09-011-1/+1
| | | | | | | | | | | | | 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-111-0/+8
| | | | | | | 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-201-0/+12
| | | | raised, caught, and converted to a string.
* Added a test to catch the base class.Barry Warsaw2000-05-251-0/+4
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-10/+10
|
* Expanded r() function to handle class exceptions.Barry Warsaw1997-08-291-1/+6
|
* exec() -> execGuido van Rossum1995-08-111-1/+1
|
* Unmerged except and finally clausesGuido van Rossum1992-05-061-4/+5
|
* Initial revisionGuido van Rossum1992-01-271-0/+91