On Tue, Aug 4, 2009 at 6:03 PM, Jeroen Vermeulen<[email protected]> 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 <[email protected]> http://www.stuartbishop.net/ _______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp

