def uninit():
    """Undo the effects of init(). Useful for testing.
    """
    global run, config, watch_called, _saved_files
    run = config = None
    watch_called = False
    _saved_files = set()