Message393417
I can't reproduce the issue on 3.10, I believe it was fixed by this:
https://github.com/python/cpython/commit/c9b3ef2df06818f055e555c1d23e3ff2d5bf2d74
in particular:
- def expectedFailure(func):
- @functools.wraps(func)
- def wrapper(*args, **kwargs):
- try:
- func(*args, **kwargs)
- except Exception:
- raise _ExpectedFailure(sys.exc_info())
- raise _UnexpectedSuccess
- return wrapper
+ def expectedFailure(test_item):
+ test_item.__unittest_expecting_failure__ = True
+ return test_item
2.7 won't be fixed, so closing. |
|
Date |
User |
Action |
Args |
2021-05-10 16:21:47 | iritkatriel | set | recipients:
+ iritkatriel, rbcollins, ezio.melotti, michael.foord, kwarunek, Erasmus Cedernaes |
2021-05-10 16:21:47 | iritkatriel | set | messageid: <1620663707.69.0.0980105636977.issue31604@roundup.psfhosted.org> |
2021-05-10 16:21:47 | iritkatriel | link | issue31604 messages |
2021-05-10 16:21:47 | iritkatriel | create | |
|