pyobjc / pyobjc-core / Doc / api / module-PyObjCTools.TestSupport.rst

:mod:`PyObjCTools.TestSupport` -- Testing helpers

This module provides classes and functions that are usefull for testing PyObjC itself including the framework wrappers.


This module is primarily used for testing PyObjC and the API isn't fully stable.

A with-statement context that adds a filter to the warnings module while the body of the statement is running.

This is similar to :class:`warnings.catch_warnings`.

A subclass of :class:`unittest.TestCase` with some addition functionality. The most important addition is that each test gets run with a fresh autorelease pool.


There are also a number of deprecated aliases for the methods above, those are intentionally not documented.