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
8ac95ee6
Kaydet (Commit)
8ac95ee6
authored
Nis 04, 2012
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_site from modifying sysconfig._CONFIG_VARS.
üst
5ceef131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
test_site.py
Lib/test/test_site.py
+4
-1
No files found.
Lib/test/test_site.py
Dosyayı görüntüle @
8ac95ee6
...
@@ -39,6 +39,7 @@ class HelperFunctionsTests(unittest.TestCase):
...
@@ -39,6 +39,7 @@ class HelperFunctionsTests(unittest.TestCase):
self
.
old_base
=
site
.
USER_BASE
self
.
old_base
=
site
.
USER_BASE
self
.
old_site
=
site
.
USER_SITE
self
.
old_site
=
site
.
USER_SITE
self
.
old_prefixes
=
site
.
PREFIXES
self
.
old_prefixes
=
site
.
PREFIXES
self
.
original_vars
=
sysconfig
.
_CONFIG_VARS
self
.
old_vars
=
copy
(
sysconfig
.
_CONFIG_VARS
)
self
.
old_vars
=
copy
(
sysconfig
.
_CONFIG_VARS
)
def
tearDown
(
self
):
def
tearDown
(
self
):
...
@@ -47,7 +48,9 @@ class HelperFunctionsTests(unittest.TestCase):
...
@@ -47,7 +48,9 @@ class HelperFunctionsTests(unittest.TestCase):
site
.
USER_BASE
=
self
.
old_base
site
.
USER_BASE
=
self
.
old_base
site
.
USER_SITE
=
self
.
old_site
site
.
USER_SITE
=
self
.
old_site
site
.
PREFIXES
=
self
.
old_prefixes
site
.
PREFIXES
=
self
.
old_prefixes
sysconfig
.
_CONFIG_VARS
=
self
.
old_vars
sysconfig
.
_CONFIG_VARS
=
self
.
original_vars
sysconfig
.
_CONFIG_VARS
.
clear
()
sysconfig
.
_CONFIG_VARS
.
update
(
self
.
old_vars
)
def
test_makepath
(
self
):
def
test_makepath
(
self
):
# Test makepath() have an absolute path for its first return value
# Test makepath() have an absolute path for its first return value
...
...
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