INNER CODE UNIT · Python

test_something

PyAbel/PyAbel · abel/__init__.py:26

def test_something():
    ...
    with catch_warnings():
        simplefilter('ignore', category=DeprecationWarning)
        # test deprecated function/arguments
        ...
    ...

'''
from warnings import warn, filterwarnings
# class for documentation format
class __deprecated:
    def __repr__(self):
        return '<deprecated>'
# marker of deprecated parameters
_deprecated = __deprecated()
# print deprecation warning
def _deprecate(msg):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…