Skip to content

Excessive Warning Printing During Tests #8892

@ericspod

Description

@ericspod

When running tests, thousands of lines like this appear in the logs:

Accessing `__warningregistry__` from `.models.video_llava.image_processing_video_llava`. Returning `__warningregistry__` instead. Behavior may be different and this alias will be removed in future versions.

This appears unrelated to MONAI or transformers but related to using unittest.TestCase.assertWarns method. This method using a context manager that messes around with __warningregistry__ in places, but it's unclear why these get printed now and it's not something seen before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions