Message285202
| Author |
Vlastimil.Zíma |
| Recipients |
Vlastimil.Zíma, davin, michael.foord, peter.otten, r.david.murray, serhiy.storchaka |
| Date |
2017年01月11日.09:11:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1484125918.26.0.679376066011.issue20804@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Since the issue was dug up, I've created a patch for documentation.
I still think, that it is worth stating the equality is not preserved for sentinels when copied as the message produced by tests is rather confusing:
class SentinelTestCase(TestCase):
def test_sentinel(self):
self.assertEqual(sentinel.foo, copy(sentinel.foo))
# AssertionError: sentinel.foo != sentinel.foo |
|