Message285202
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 |
|
Date |
User |
Action |
Args |
2017-01-11 09:11:58 | Vlastimil.Zíma | set | recipients:
+ Vlastimil.Zíma, peter.otten, r.david.murray, michael.foord, serhiy.storchaka, davin |
2017-01-11 09:11:58 | Vlastimil.Zíma | set | messageid: <1484125918.26.0.679376066011.issue20804@psf.upfronthosting.co.za> |
2017-01-11 09:11:58 | Vlastimil.Zíma | link | issue20804 messages |
2017-01-11 09:11:58 | Vlastimil.Zíma | create | |
|