Python 为什么我在测试中多次启动tornado.autoreload?

Python 为什么我在测试中多次启动tornado.autoreload?,python,tornado,Python,Tornado,我使用tornado.testing来实现我的tornado处理程序的单元测试。这些测试似乎在起作用。但我得到了每个测试函数的以下错误 [W 141027 19:13:25 autoreload:117] tornado.autoreload started more than once in the same process 这重要吗?如何停止它?它不会伤害任何东西,但警告意味着您可能正在向测试中创建的每个应用程序传递debug=True。您可能不想在测试中使用调试模式(如果这样做,您可以通

我使用tornado.testing来实现我的tornado处理程序的单元测试。这些测试似乎在起作用。但我得到了每个测试函数的以下错误

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

这重要吗?如何停止它?

它不会伤害任何东西,但警告意味着您可能正在向测试中创建的每个应用程序传递
debug=True
。您可能不想在测试中使用调试模式(如果这样做,您可以通过
autoreload=False
关闭此选项,或者使用其他一些选项仅打开所需的调试模式部分