def test_implicit_reset_lookup_main(): other_lookup = object() implicit.lookup = other_lookup assert implicit.lookup is other_lookup assert implicit.lookup is not implicit.registry implicit.reset_lookup() assert implicit.lookup is implicit.registry
def test_implicit_reset_lookup_main(): other_lookup = object() implicit.lookup = other_lookup assert implicit.lookup is other_lookup assert implicit.lookup is not implicit.registry implicit.reset_lookup() assert implicit.lookup is implicit.registry
def f(): implicit.lookup = other_lookup log.append(implicit.lookup) implicit.reset_lookup() log.append(implicit.lookup)
def f(): implicit.lookup = other_lookup log.append(implicit.lookup) implicit.reset_lookup() log.append(implicit.lookup)