This patch does not cover all cases of `test_contextlib.py`
`bytecode::Instruction::SetupWith` and `BeforeAsyncWith`
raise a TypeError instead of an AttributeError.
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
A TypeError is raised instead of an AttributeError in "with" and
"async with" statements for objects which do not support the context
manager or asynchronous context manager protocols correspondingly.
See also:
https://github.com/python/cpython/pull/26809