Environment variables are properly restored when using pytester's ``testdir`` fixture.