[python-uk] Issue with unit tests in IntelliJ IDEA

Dave Kirby dave.x.kirby at gmail.com
Tue Jul 14 14:40:00 CEST 2015

It looks like you have a command line argument "true" when you invoke
the test - is that supposed to be there?  It is not an argument that
unittest.main would expect.

On 14 July 2015 at 11:33, David Szervanszky <dszervanszky at omnifone.com> wrote:
> Hi,
> I’ve been working on contributing to an open source project and have gotten
> to the stage where I’m writing my tests but I’ve run into a bit of an issue
> around a unit test I’ve written. Namely that the unit test won’t run and I
> receive the following error:
> utrunner.py: error: unrecognized arguments:
> /Users/me/dev/IdeaProjects/dynamic-dynamodb/dynamic_dynamodb/test_scaling_metrics.py
> true
> I’ve had a look on Google and StackOverflow but I couldn’t find the answer
> anywhere. My test contains imports for the modules I need, a class
> containing all of my tests in methods, and the standard entry point:
> if __name__ == '__main__':
>     unittest.main()
> If anyone has any ideas as to what’s going on please let me know and if any
> further information is required I’d be happy to answer.
> Regards,
> David Szervanszky
> Developer
> T +44 (0)20 8600 0580
> E dszervanszky at omnifone.com
> W www.omnifone.com
> Omnifone | The Old School | 50 Brook Green | London | W6 7BJ
> DISCLAIMER: This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this email in error please notify the system
> manager. Please note that any views or opinions presented in this email are
> solely those of the author and do not necessarily represent those of the
> company.  Finally, the recipient should check this email and any attachments
> for the presence of viruses. The company accepts no liability for any damage
> caused by any virus transmitted by this email.
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
> _______________________________________________
> python-uk mailing list
> python-uk at python.org
> https://mail.python.org/mailman/listinfo/python-uk

More information about the python-uk mailing list