Why did I get tornado.autoreload started multiple times in testing?

I am using tornado.testing to implement my unit test tornado handlers. The tests seem to be working. But for every test function I got below error.

[W 141027 19:13:25 autoreload:117] tornado.autoreload started more than once in the same process

      

Does it matter? How can I stop it?

+3


source to share


1 answer


It won't hurt anything, but the warning means you are probably going through debug=True

for every application you create in your tests. You probably don't want to use debug mode in your tests (and if you do, you can pass autoreload=False

to disable that, or use some other options to enable only those parts of debug mode that you need.



+4


source







All Articles