mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "Reduce pytest prints (#117069)"
This reverts commit 40dbd567e04483c671f9c897171bf9d1e7162b68. Reverted https://github.com/pytorch/pytorch/pull/117069 on behalf of https://github.com/clee2000 due to need to handle timeout expired better ([comment](https://github.com/pytorch/pytorch/pull/117069#issuecomment-1901270953))
This commit is contained in:
@ -19,7 +19,6 @@ import copy
|
||||
import json
|
||||
import re
|
||||
from collections import defaultdict
|
||||
from pytest_shard_custom import PytestShardPlugin, pytest_addoptions as shard_addoptions
|
||||
|
||||
# a lot of this file is copied from _pytest.junitxml and modified to get rerun info
|
||||
|
||||
@ -85,7 +84,6 @@ def pytest_addoption(parser: Parser) -> None:
|
||||
"Emit XML for schema: one of legacy|xunit1|xunit2",
|
||||
default="xunit2",
|
||||
)
|
||||
shard_addoptions(parser)
|
||||
|
||||
|
||||
def pytest_configure(config: Config) -> None:
|
||||
@ -107,8 +105,6 @@ def pytest_configure(config: Config) -> None:
|
||||
config.option.stepcurrent = config.getoption("stepcurrent_skip")
|
||||
if config.getoption("stepcurrent"):
|
||||
config.pluginmanager.register(StepcurrentPlugin(config), "stepcurrentplugin")
|
||||
if config.getoption("num_shards"):
|
||||
config.pluginmanager.register(PytestShardPlugin(config), "pytestshardplugin")
|
||||
|
||||
|
||||
def pytest_unconfigure(config: Config) -> None:
|
||||
|
Reference in New Issue
Block a user