Issue #28666: Fix stat import
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 5222633..e084f3b 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -8,6 +8,7 @@
 import functools
 import gc
 import socket
+import stat
 import sys
 import os
 import platform
@@ -248,7 +249,6 @@
     _rmdir = os.rmdir
 
     def _rmtree(path):
-        import stat
         try:
             shutil.rmtree(path)
             return