]> granicus.if.org Git - python/commit
Fix TestPosixSpawn.test_close_file() (GH-8992)
authorVictor Stinner <vstinner@redhat.com>
Wed, 29 Aug 2018 23:21:11 +0000 (01:21 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Aug 2018 23:21:11 +0000 (01:21 +0200)
commit0382406fccbb31aa993de118b60e7fd4ec264968
tree2116b528923ed6b0f964665698ca49da5c6653df
parentfbca90856d96273fd87c0b126f6e7966af7fbf7b
Fix TestPosixSpawn.test_close_file() (GH-8992)

Modify TestPosixSpawn to run Python using -I and -S options.

Disable site module to avoid side effects. For example, on Fedora 28,
if the HOME environment variable is not set, site._getuserbase()
calls pwd.getpwuid() which opens /var/lib/sss/mc/passwd, but then
leaves the file open which makes test_close_file() to fail.
Lib/test/test_posix.py