enable_deprecations_as_exceptions¶
- astropy.tests.helper.enable_deprecations_as_exceptions(include_astropy_deprecations=True, modules_to_ignore_on_import=[], warnings_to_ignore_entire_module=[], warnings_to_ignore_by_pyver={})[ソース]¶
破棄を異常に変換する機能を開く.
- パラメータ
- include_astropy_deprecationsブルル.
If set to
True,AstropyDeprecationWarningandAstropyPendingDeprecationWarningare also turned into exceptions.- modules_to_ignore_on_import文字列リスト
List of additional modules that generate deprecation warnings on import, which are to be ignored. By default, these are already included:
compiler,scipy,pygments,ipykernel, andsetuptools.- warnings_to_ignore_entire_module文字列リスト
(導入期間だけではなく)完全に無視する破棄警告を含むモジュールリスト.もし…。
include_astropy_deprecations=True与えられましたAstropyDeprecationWarningそしてAstropyPendingDeprecationWarningモジュールについても無視される.- warnings_to_ignore_by_pyverディクト!
辞書マッピングタプル
(major, minor)Pythonバージョンを追加(warning_message, warning_class)無視する。Pythonバージョンとは無関係な警告をマッピングする必要がありますNonekey. This is in addition of those already ignored by default (see ``_ Warning_to_Ignore_by_pyver≡値)。