def test_rmtree_retries_for_3sec(tmpdir, monkeypatch):
 monkeypatch.setattr(shutil, 'rmtree', Failer(duration=5).call)
 with pytest.raises(OSError):
  rmtree('foo')

def test_rmtree_retries_for_3sec ( tmpdir , monkeypatch ) : monkeypatch . setattr ( shutil , 'rmtree' , Failer ( duration = 5 ) . call ) with pytest . raises ( OSError ) : rmtree ( 'foo' )
test pip .