import io, sys, zipfile from pathlib import Path sys.path.insert(0, ".") from api_harness import PERIOD_202607, post import test_frame_skeleton as tf # 复用 frame 夹具跑同流程,打印导出错误 srv = None import subprocess, time, socket, shutil, os root = Path("../_dbg_framesrv") if root.exists(): shutil.rmtree(root) srv = {"client": None} # 直接调 fserver 夹具太绕——用 pytest 的夹具跑一次并在测试里打印 import api_harness