Message190394
Perhaps it will be even better to extract loop body as a local function and then call it with different arguments.
def check(dup):
self.assertTrue(dup is not od)
self.assertEqual(dup, od)
...
check(od.copy())
check(copy.copy(od))
...
In this case we will see a tested case right in the traceback. |
|
Date |
User |
Action |
Args |
2013-05-31 08:52:01 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, ezio.melotti, michael.foord, vajrasky |
2013-05-31 08:52:01 | serhiy.storchaka | set | messageid: <1369990321.64.0.897471582582.issue18106@psf.upfronthosting.co.za> |
2013-05-31 08:52:01 | serhiy.storchaka | link | issue18106 messages |
2013-05-31 08:52:01 | serhiy.storchaka | create | |
|