Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
85aba238
Kaydet (Commit)
85aba238
authored
May 30, 2017
tarafından
Gregory P. Smith
Kaydeden (comit)
GitHub
May 30, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
subprocess test_empty_env typo fix. (#1877)
üst
9efad1e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_subprocess.py
Lib/test/test_subprocess.py
+3
-3
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
85aba238
...
...
@@ -636,13 +636,13 @@ class ProcessTestCase(BaseTestCase):
def
test_empty_env
(
self
):
"""Verify that env={} is as empty as possible."""
def
is_env_var_to_ignore
(
var_name
):
def
is_env_var_to_ignore
(
n
):
"""Determine if an environment variable is under our control."""
# This excludes some __CF_* and VERSIONER_* keys MacOS insists
# on adding even when the environment in exec is empty.
# Gentoo sandboxes also force LD_PRELOAD and SANDBOX_* to exist.
return
(
'VERSIONER'
in
k
or
'__CF'
in
k
or
# MacOS
k
==
'LD_PRELOAD'
or
k
.
startswith
(
'SANDBOX'
))
# Gentoo
return
(
'VERSIONER'
in
n
or
'__CF'
in
n
or
# MacOS
n
==
'LD_PRELOAD'
or
n
.
startswith
(
'SANDBOX'
))
# Gentoo
with
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
'import os; print(list(os.environ.keys()))'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment