def no_warnings():
    import testify as T  # in case you're not using testify

    return mock.patch.object(
        vimap.exception_handling,
        'print_warning',
        lambda *args, **kwargs: T.assert_not_reached())


# for queue_feed_routine_ignoring_ioerrors
Make vimap.exception_handling.print_warning fail tests.
dataset/ETHPy150Open gatoatigrado/vimap/vimap/testing.py/no_warnings