bpo-28180: Fix test_capi.test_forced_io_encoding() (#2155)

Don't run Python in an empty environment, but copy the current
environment and set PYTHONIOENCODING. So the test works also on
Python compiled in shared mode (using libpython).
1 file changed