You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# using `unittest`: https://docs.python.org/3/library/warnings.html#testing-warnings
# using `pytest`: https://docs.pytest.org/en/4.1.0/warnings.html#assertwarnings
#
# Our policy here is to ignore (silence) any deprecation warnings from _outside_ allennlp, but to
# treat any _internal_ deprecation warnings as errors. If we get a deprecation warning from things
# we call in another library, we will just rely on seeing those outside of tests. The purpose of
# having these errors here is to make sure that we do not deprecate things lightly in allennlp.
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
error::DeprecationWarning:allennlp.*:
error::PendingDeprecationWarning:allennlp.*:
# For these particular warnings, we don't want to cause an error for it, but we also don't want to
# see it a whole bunch of times.
once:This particular transformer implementation is a provisional feature.*::allennlp\.modules\.seq2seq_encoders\.bidirectional_language_model_transformer
ignore:Length of IterableDataset.*:UserWarning:torch\.utils\.data\.dataloader