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
c5111b5b
Kaydet (Commit)
c5111b5b
authored
Eyl 10, 2016
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Closes #28059: Fixes test_platform to set PYTHONPATH for .pyd files
üst
82cb1243
109bc3aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_platform.py
Lib/test/test_platform.py
+3
-2
No files found.
Lib/test/test_platform.py
Dosyayı görüntüle @
c5111b5b
...
...
@@ -15,8 +15,8 @@ class PlatformTest(unittest.TestCase):
@support.skip_unless_symlink
def
test_architecture_via_symlink
(
self
):
# issue3762
# On Windows, the EXE needs to know where pythonXY.dll
is at so we have
#
to add the directory to the path
.
# On Windows, the EXE needs to know where pythonXY.dll
and *.pyd is at
#
so we add the directory to the path and PYTHONPATH
.
if
sys
.
platform
==
"win32"
:
def
restore_environ
(
old_env
):
os
.
environ
.
clear
()
...
...
@@ -26,6 +26,7 @@ class PlatformTest(unittest.TestCase):
os
.
environ
[
"Path"
]
=
"{};{}"
.
format
(
os
.
path
.
dirname
(
sys
.
executable
),
os
.
environ
[
"Path"
])
os
.
environ
[
"PYTHONPATH"
]
=
os
.
path
.
dirname
(
sys
.
executable
)
def
get
(
python
):
cmd
=
[
python
,
'-c'
,
...
...
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