← Back to team overview

launchpad-dev team mailing list archive

Re: No such option: --resume-layer

 

On Tue, Aug 4, 2009 at 6:03 PM, Jeroen Vermeulen<jtv@xxxxxxxxxxxxx> wrote:
> Jeroen Vermeulen wrote:
>>
>> Has anyone seen this?  Some of my tests are failing *if* I run them in
>> the right (well, wrong) combination.
>>
>> If I run message-sharing-merge-script.txt and, in the same test run,
>> also the tests in test_message_sharing_migration then all the tests in
>> the latter fail.  The doctest does succeed, and it doesn't trigger any
>> failures in other tests.
>>
>> The failures I get look like:
>
>> usage: test [options]
>>
>> test: error: no such option: --resume-layer
>
>  ---8<---
>
> The errors go away when I pass test_args=[] to the script constructor.

Now I remember. Yes, using sys.argv as a default fails when you are
invoking the method from the test suite.



-- 
Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
http://www.stuartbishop.net/



References