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.
Created on 2010年02月02日 10:32 by ezio.melotti, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue7837.patch | ezio.melotti, 2010年02月02日 10:32 | patch for trunk + tests | ||
| issue7837v2.patch | ezio.melotti, 2010年02月02日 15:07 | patch for trunk + tests | ||
| issue7837_assertSameElements.diff | flox, 2010年02月02日 15:18 | Patch, apply to trunk | ||
| Messages (4) | |||
|---|---|---|---|
| msg98726 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2010年02月02日 10:32 | |
In assertSameElements ( Lib/unittest/case.py ) there's a filter for py3k warning that checks for warning about dict comparisons but not for comparisons of unequal types. If python is run with the -3 flag and a non-hashable sequence with elements of different types is passed to assertSameElements the warning is not silenced. There's also a third warning that might be raised if among the elements there's a builtin function or method. Patch attached. |
|||
| msg98743 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2010年02月02日 15:07 | |
New patch that filters one more warning. |
|||
| msg98744 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年02月02日 15:18 | |
Variant based on the previous patches. It fixes an error relative to assertSameElements: comparing sequences which contain unorderable types. Example: [2j, 5j, set(), frozenset()] The util.unorderable_list_difference() helper is backported from 3.x. |
|||
| msg100656 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2010年03月08日 16:40 | |
Fixed in r78757 (trunk). I opened #8088 for the unorderable types problem. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:57 | admin | set | github: 52085 |
| 2010年03月08日 16:40:57 | ezio.melotti | set | status: open -> closed messages: + msg100656 keywords: patch, patch, easy, needs review resolution: fixed stage: patch review -> resolved |
| 2010年02月02日 15:18:15 | flox | set | keywords:
patch, patch, easy, needs review files: + issue7837_assertSameElements.diff messages: + msg98744 |
| 2010年02月02日 15:13:41 | ezio.melotti | set | keywords:
patch, patch, easy, needs review assignee: ezio.melotti |
| 2010年02月02日 15:07:03 | ezio.melotti | set | keywords:
patch, patch, easy, needs review assignee: ezio.melotti -> (no value) messages: + msg98743 files: + issue7837v2.patch |
| 2010年02月02日 12:58:03 | michael.foord | set | keywords:
patch, patch, easy, needs review assignee: ezio.melotti |
| 2010年02月02日 10:32:55 | ezio.melotti | create | |