mirror of https://github.com/pytest-dev/pytest.git
Related to #11423
(cherry picked from commit 241f2a890e
)
This commit is contained in:
parent
1944dc06d3
commit
f8bb8572fe
|
@ -21,6 +21,15 @@ if sys.gettrace():
|
|||
sys.settrace(orig_trace)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def set_column_width(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""
|
||||
Force terminal width to 80: some tests check the formatting of --help, which is sensible
|
||||
to terminal width.
|
||||
"""
|
||||
monkeypatch.setenv("COLUMNS", "80")
|
||||
|
||||
|
||||
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
|
||||
def pytest_collection_modifyitems(items):
|
||||
"""Prefer faster tests.
|
||||
|
|
Loading…
Reference in New Issue