in cassette/player.py [0:0]
def __exit__(self, exc_type, exc_value, tb):
# If the cassette items have changed, save the changes to file
if self.library.is_dirty:
self.library.write_to_file()
# Remove our overrides
unpatch()