]> granicus.if.org Git - python/commit
bpo-28180: Fix test_capi.test_forced_io_encoding() (#2155)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 13 Jun 2017 09:49:44 +0000 (11:49 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 09:49:44 +0000 (11:49 +0200)
commiteb52ac89929bb09b15c014ab8ff60eee685e86c7
treeaec8a442e56ab34e748ea45c0d23082da3b771a7
parentd79c1d4a9406384f10a37f26a7515ce79f9fdd78
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).
Lib/test/test_capi.py