The one at https://github.com/enthought/enstaller/blob/config_singleton_big_removal/enstaller/config.py#L238. I was hoping to get a with assertWarns context manager, but this ended up being too much work for what it worth.