9 Commits

Author SHA1 Message Date
LYK
ef77e45427 Change error type for bad objects in "with" and "async with"
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>
2023-03-08 01:45:12 +09:00
LYK
51fcfe980f Mark failing tests of test/test_with.py
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
2023-03-07 05:02:10 +09:00
CPython Developers
e983506e23 Update test/test_with.py from CPython 3.11.2 2023-03-07 04:51:09 +09:00
CPython Developers
3c5ab3a8ef Update test_with from CPython 3.10.6 2022-08-15 00:34:06 +09:00
Daeun Lee
a563d07919 Fix testEnterAttributeError2 in test_with.py 2022-07-15 22:13:17 +09:00
Noah
f50f930255 Add setattro slot, split call_method and call_special_method 2021-03-15 09:45:06 -05:00
Jeong YunWon
97304ddc52 unksip test_with.py 2020-11-12 11:30:33 +09:00
Aviv Palivoda
5275ef6e3a Mark unsupported tests 2020-02-22 14:11:50 +02:00
Aviv Palivoda
0e2ccf36fc Add test_with from CPython 3.8 2020-02-22 14:10:06 +02:00