You should make use of the wraps=os.dup2 in mock.patch("os.dup2") call. I've got a few other inline suggestions regarding naming.
« Back to merge proposal
You should make use of the wraps=os.dup2 in mock.patch( "os.dup2" ) call. I've got a few other inline suggestions regarding naming.