def monkey_restore ( ) : for k , v in originals . items ( ) : setattr ( time_mod , k , v ) global epoch epoch = None
python how to revert monkeypatch changes
restore real versions . Inverse of monkey_patch
def monkey_restore():
    """restore real versions. Inverse of `monkey_patch`"""
    for k, v in originals.items():
        setattr(time_mod, k, v)
    
    global epoch
    epoch = None