fix_unitest (#4159)

Co-authored-by: K11OntheBoat <your_email@example.com>
Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
This commit is contained in:
qwes5s5
2025-09-18 11:17:15 +08:00
committed by GitHub
parent 98447beb4d
commit 62b8b02e08

View File

@@ -477,6 +477,7 @@ class TestCollectEnv(unittest.TestCase):
with (
patch("sys.stdout", new=captured_output),
patch("fastdeploy.collect_env.torch", create=True, __version__="1.0.0"),
patch("fastdeploy.collect_env.hasattr", return_value=False),
):
collect_env.main()
output = captured_output.getvalue()