[Zope-dev] Testrunner option for running tests in random order?!?

Jonathan Ballet jonathan.ballet at securactive.net
Fri Oct 9 10:28:15 EDT 2009


Hi,

On Fri, Oct 9, 2009 at 3:30 PM, Benji York <benji at zope.com> wrote:
> On Fri, Oct 9, 2009 at 8:51 AM, Jonathan Ballet
> <jonathan.ballet at securactive.net> wrote:
>> If I want this option to have an optional value, I think I must set a
>> default value to the option. But then, how to make the distinction
>> between the two first cases? I might miss something I don't know in
>> option parsing, but I didn't find anything...
>
> I'd try the same approach as default options in Python functions.  Make
> the default None (which isn't a valid seed) and then you can tell the
> difference.

That's what I originally though, but then, how can I make the
difference between 'the user has not set --shuffle' (the option's
value is then None), and 'the user has set the --shuffle option, but
without specifying a seed' (then the option's value is None again)?

 Jonathan


More information about the Zope-Dev mailing list