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
a0e0f9ed
Kaydet (Commit)
a0e0f9ed
authored
Eki 17, 2009
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't replace sys.path in test_site
üst
788d7667
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_site.py
Lib/test/test_site.py
+2
-2
No files found.
Lib/test/test_site.py
Dosyayı görüntüle @
a0e0f9ed
...
@@ -41,7 +41,7 @@ class HelperFunctionsTests(unittest.TestCase):
...
@@ -41,7 +41,7 @@ class HelperFunctionsTests(unittest.TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
"""Restore sys.path"""
"""Restore sys.path"""
sys
.
path
=
self
.
sys_path
sys
.
path
[:]
=
self
.
sys_path
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
...
@@ -248,7 +248,7 @@ class ImportSideEffectTests(unittest.TestCase):
...
@@ -248,7 +248,7 @@ class ImportSideEffectTests(unittest.TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
"""Restore sys.path"""
"""Restore sys.path"""
sys
.
path
=
self
.
sys_path
sys
.
path
[:]
=
self
.
sys_path
def
test_abs__file__
(
self
):
def
test_abs__file__
(
self
):
# Make sure all imported modules have their __file__ attribute
# Make sure all imported modules have their __file__ attribute
...
...
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