@pytest.mark.skipif(not sys.platform.startswith('win'), reason='win only')
def test_get_user(monkeypatch):
    from _pytest.tmpdir import get_user
    monkeypatch.delenv('USER', raising=False)
    monkeypatch.delenv('USERNAME', raising=False)
    assert get_user() is None
Setup to send mail with 'sendmail' from 'from_email'.
dataset/ETHPy150Open pytest-dev/pytest/testing/test_tmpdir.py/test_get_user--crossover with--dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlmail_sender.py/MailSender.__init__