Skip to content

pytester: use global monkeypatch fixture#78

Merged
blueyed merged 2 commits intomy-masterfrom
pytester-monkeypatch
Nov 6, 2019
Merged

pytester: use global monkeypatch fixture#78
blueyed merged 2 commits intomy-masterfrom
pytester-monkeypatch

Conversation

@blueyed
Copy link
Owner

@blueyed blueyed commented Nov 5, 2019

The update for inner runs then respects values being set there, e.g.
COLUMNS.

It also sets COLUMNS only for inner runs - otherwise the outer pytest's
_write_progress_information_filling_space would use the terminal width
from inner runs etc (since it is used before the teardown finalizer that
unsets it).

@blueyed blueyed force-pushed the pytester-monkeypatch branch from f5facf6 to c9e8e9f Compare November 6, 2019 09:00
The update for inner runs then respects values being set there, e.g.
`COLUMNS`.

It also sets `COLUMNS` only for inner runs - otherwise the outer pytest's
`_write_progress_information_filling_space` would use the terminal width
from inner runs etc (since it is used before the teardown finalizer that
unsets it).
@blueyed blueyed force-pushed the pytester-monkeypatch branch from c9e8e9f to 36e8c76 Compare November 6, 2019 09:43
@blueyed blueyed merged commit b0b02e7 into my-master Nov 6, 2019
@blueyed blueyed deleted the pytester-monkeypatch branch November 6, 2019 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant