mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user