Message391568
| Author |
ammar2 |
| Recipients |
ammar2, ethan.furman, gregory.p.smith, pablogsal |
| Date |
2021年04月22日.02:44:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1619059462.16.0.581065417193.issue38659@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Looks like this is the issue described in the comment here: https://github.com/python/cpython/blob/master/Lib/test/test_enum.py#L3691-L3692
On the first run you have the correct
('CONVERT_STRING_TEST_NAME_A', 5)
but later it turns into
('CONVERT_STRING_TEST_NAME_A', test.test_enum.CONVERT_STRING_TEST_NAME_A)
causing double-conversions of the enum elements. This causes the format(x) test to fail. You can re-create the same issue outside of the refleak by adding a simple:
def test_convert_repr_and_str_again(self):
self.test_convert_repr_and_str()
method. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年04月22日 02:44:22 | ammar2 | set | recipients:
+ ammar2, gregory.p.smith, ethan.furman, pablogsal |
| 2021年04月22日 02:44:22 | ammar2 | set | messageid: <1619059462.16.0.581065417193.issue38659@roundup.psfhosted.org> |
| 2021年04月22日 02:44:22 | ammar2 | link | issue38659 messages |
| 2021年04月22日 02:44:22 | ammar2 | create |
|