"""Tests for :func:`tangled.decorators.per_instance_lru_cache`.

This is a copy of Lib/test/test_functools.py from the CPython source
modified for per-instance caching of methods and properties.

"""
import builtins
import copy
import functools
import pickle