Merge master into features (with regen branch)

This commit is contained in:
Daniel Hahler
2019-04-03 22:11:00 +02:00
62 changed files with 333 additions and 188 deletions

View File

@@ -469,3 +469,16 @@ def test_linematcher_with_nonlist():
assert lm._getlines({}) == {}
assert lm._getlines(set()) == set()
def test_pytester_addopts(request, monkeypatch):
monkeypatch.setenv("PYTEST_ADDOPTS", "--orig-unused")
testdir = request.getfixturevalue("testdir")
try:
assert "PYTEST_ADDOPTS" not in os.environ
finally:
testdir.finalize()
assert os.environ["PYTEST_ADDOPTS"] == "--orig-unused"