From f1aa3ce5c4737cb52bfeae7dff548a31155da0d2 Mon Sep 17 00:00:00 2001 From: philippe Date: Thu, 10 Mar 2022 16:41:33 -0500 Subject: [PATCH] Replace deprecated flask shutdown with thread kill. #1780 --- dash/testing/application_runners.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dash/testing/application_runners.py b/dash/testing/application_runners.py index 3519226ed9..323b272157 100644 --- a/dash/testing/application_runners.py +++ b/dash/testing/application_runners.py @@ -103,10 +103,10 @@ def tmp_app_path(self): class StoppableThread(threading.Thread): - def get_id(self): + def get_id(self): # pylint: disable=R1710 if hasattr(self, "_thread_id"): return self._thread_id - for thread_id, thread in threading._active.items(): + for thread_id, thread in threading._active.items(): # pylint: disable=W0212 if thread is self: return thread_id