This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Erasmus Cedernaes, ezio.melotti, iritkatriel, kwarunek, michael.foord, rbcollins
Date 2021-05-10.16:21:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620663707.69.0.0980105636977.issue31604@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-05-10 16:21:47iritkatrielsetrecipients: + iritkatriel, rbcollins, ezio.melotti, michael.foord, kwarunek, Erasmus Cedernaes
2021-05-10 16:21:47iritkatrielsetmessageid: <1620663707.69.0.0980105636977.issue31604@roundup.psfhosted.org>
2021-05-10 16:21:47iritkatriellinkissue31604 messages
2021-05-10 16:21:47iritkatrielcreate