Op 29 mrt. 2018 21:06 schreef "Shall, Sydney" <sydney.sh...@kcl.ac.uk>: > > I have a problem with a specific test, I think. > > I use a Mac with OS X 10.13.3 > I use Anaconda with Python 3.5 > > I have been writing tests for a Class that I have written. I am not > finished yet, but there are already nearly 400 tests. The tests run and > return OK. [After cleaning up many silly mistakes that I made.] > > However, now, when I run the tests (Unittest) I get the following warning: > .... > lib/python3.5/unittest/case.py:1092: FutureWarning: elementwise > comparison failed; returning scalar instead, but in the future will > perform elementwise comparison > if member in container: > ... > > No other information is given. > > My problem is, how do I find out where exactly the problem originates. > --
Try running Python with the option '-W error', or set PYTHONWARNINGS to 'error'. https://docs.python.org/2/using/cmdline.html#envvar-PYTHONWARNINGS _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor