Conftest
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. 保留所有权利。SPDX-License-Identifier: LicenseRef-Apache2
根据 Apache License 2.0 版(“许可证”)获得许可;除非遵守许可证的规定,否则您不得使用此文件。您可以在以下位置获取许可证的副本:
https://apache.ac.cn/licenses/LICENSE-2.0
除非适用法律要求或以书面形式达成协议,否则根据“许可证”分发的软件将按“现状”基础分发,不附带任何形式的明示或暗示的保证或条件。请参阅许可证,了解关于权限和限制的具体语言。
在 [ ]
已复制!
def pytest_collectstart(collector):
if collector.fspath and collector.fspath.ext == ".ipynb":
collector.skip_compare += (
"text/html",
"application/javascript",
"stderr",
)
def pytest_collectstart(collector): if collector.fspath and collector.fspath.ext == ".ipynb": collector.skip_compare += ( "text/html", "application/javascript", "stderr", )