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
adffced3
Kaydet (Commit)
adffced3
authored
Kas 09, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Preserve the original environment (e.g. LD_LIBRARY_PATH)
üst
84c29a2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
script_helper.py
Lib/test/script_helper.py
+5
-4
No files found.
Lib/test/script_helper.py
Dosyayı görüntüle @
adffced3
...
...
@@ -17,12 +17,13 @@ from test.support import make_legacy_pyc
# Executing the interpreter in a subprocess
def
_assert_python
(
expected_success
,
*
args
,
**
env_vars
):
cmd_line
=
[
sys
.
executable
]
if
env_vars
:
env
=
env_vars
else
:
env
=
os
.
environ
if
not
env_vars
:
cmd_line
.
append
(
'-E'
)
cmd_line
.
extend
(
args
)
# Need to preserve the original environment, for in-place testing of
# shared library builds.
env
=
os
.
environ
.
copy
()
env
.
update
(
env_vars
)
p
=
subprocess
.
Popen
(
cmd_line
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
env
=
env
)
...
...
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