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 gagern
Recipients eric.araujo, ezio.melotti, gagern, michael.foord, rik.poggi
Date 2012-04-13.20:56:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334350588.48.0.989532401478.issue11218@psf.upfronthosting.co.za>
In-reply-to
Content
I'm attaching a patch to better explain what I'm suggesting. As you can see, this patch doesn't change the signature of discover, nor does it change the semantics for any code that doesn't pass pattern, or that passes some pattern other than None.

The only change is that now, passing pattern=None is the same as not passing pattern at all. As a result, load_tests might now pass pattern=pattern as the documentation suggests, and still be called with pattern=None without raising an exception.
History
Date User Action Args
2012-04-13 20:56:28gagernsetrecipients: + gagern, ezio.melotti, eric.araujo, michael.foord, rik.poggi
2012-04-13 20:56:28gagernsetmessageid: <1334350588.48.0.989532401478.issue11218@psf.upfronthosting.co.za>
2012-04-13 20:56:27gagernlinkissue11218 messages
2012-04-13 20:56:27gagerncreate