summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pep352.py
Commit message (Collapse)AuthorAgeFilesLines
* #6844 followup: the warning when setting Exception.message was removed, do ↵Georg Brandl2009-09-171-7/+0
| | | | not test for it.
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-5/+5
|
* Avoid PendingDeprecationWarnings emitted by deprecated unittest methods.Georg Brandl2009-06-031-2/+2
|
* warnings.catch_warnings() now returns a list or None instead of the customBrett Cannon2008-09-091-7/+7
| | | | | | | | WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson.
* Remove test.test_support.guard_warnings_filter.Brett Cannon2007-08-141-7/+7
| | | | | | | | test.test_support.catch_warning is more full-featured and provides the same functionality. Since guard_warnings_filter was added in 2.6 there is no backwards-compatibility issues.
* Deprecate BaseException.message as per PEP 352.Brett Cannon2007-05-051-17/+59
|
* Refactor PEP 352 tests to make it easier in the future to make sure certainBrett Cannon2007-02-231-18/+34
| | | | things cannot be raised or caught.
* No more raising of string exceptions!Brett Cannon2007-01-301-23/+39
| | | | | | | The next step of PEP 352 (for 2.6) causes raising a string exception to trigger a TypeError. Trying to catch a string exception raises a DeprecationWarning. References to string exceptions has been removed from the docs since they are now just an error.
* Remove the __unicode__ method from exceptions. Allows unicode() to be calledBrett Cannon2006-09-091-2/+1
| | | | | | | on exception classes. Would require introducing a tp_unicode slot to make it work otherwise. Fixes bug #1551432 and will be backported.
* Fix parsing of exception_hierarchy.txt when a platform-specific exception isBrett Cannon2006-03-011-0/+1
| | | | specified. Hopefully this wll bring warming to Tim's Windows-loving heart.
* PEP 352 implementation. Creates a new base class, BaseException, which has anBrett Cannon2006-03-011-0/+182
added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846.