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.

Author serhiy.storchaka
Recipients ezio.melotti, michael.foord, pitrou, serhiy.storchaka, vajrasky
Date 2013-05-31.08:52:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369990321.64.0.897471582582.issue18106@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-31 08:52:01serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, ezio.melotti, michael.foord, vajrasky
2013-05-31 08:52:01serhiy.storchakasetmessageid: <1369990321.64.0.897471582582.issue18106@psf.upfronthosting.co.za>
2013-05-31 08:52:01serhiy.storchakalinkissue18106 messages
2013-05-31 08:52:01serhiy.storchakacreate