We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc16bbf commit b970aeaCopy full SHA for b970aea
1 file changed
reflex/testing.py
@@ -14,6 +14,7 @@
14
import socket
15
import socketserver
16
import subprocess
17
+import sys
18
import textwrap
19
import threading
20
import time
@@ -475,7 +476,7 @@ def stop(self) -> None:
475
476
frontend_children = psutil.Process(self.frontend_process.pid).children(
477
recursive=True,
478
)
- if platform.system() == "Windows":
479
+ if sys.platform == "win32":
480
self.frontend_process.terminate()
481
else:
482
pgrp = os.getpgid(self.frontend_process.pid)
0 commit comments