Message119960
| Author |
rhettinger |
| Recipients |
michael.foord, rhettinger |
| Date |
2010年10月30日.05:26:09 |
| SpamBayes Score |
1.767283e-05 |
| Marked as misclassified |
No |
| Message-id |
<1288416372.65.0.387803067469.issue10242@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
class T(unittest.TestCase):
def test_items_equal(self):
# this test fails, but should succeed
a = [{2,4}, {1,2}]
b = a[::-1]
self.assertItemsEqual(a, b)
This method has a fast-path using sorted() and a slow-path that doesn't care about cross-type comparisons. The fast-path is incorrect though and gets the wrong answer in the above test case. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年10月30日 05:26:13 | rhettinger | set | recipients:
+ rhettinger, michael.foord |
| 2010年10月30日 05:26:12 | rhettinger | set | messageid: <1288416372.65.0.387803067469.issue10242@psf.upfronthosting.co.za> |
| 2010年10月30日 05:26:10 | rhettinger | link | issue10242 messages |
| 2010年10月30日 05:26:09 | rhettinger | create |
|