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
d4c76d96
Unverified
Kaydet (Commit)
d4c76d96
authored
Eki 01, 2018
tarafından
INADA Naoki
Kaydeden (comit)
GitHub
Eki 01, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-30167: Add test for module.__cached__ is None (GH-7617)
üst
cd602b8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
test_site.py
Lib/test/test_site.py
+11
-0
No files found.
Lib/test/test_site.py
Dosyayı görüntüle @
d4c76d96
...
...
@@ -389,6 +389,17 @@ class ImportSideEffectTests(unittest.TestCase):
"expected absolute path, got {}"
.
format
(
os__cached__
.
decode
(
'ascii'
)))
def
test_abs_paths_cached_None
(
self
):
"""Test for __cached__ is None.
Regarding to PEP 3147, __cached__ can be None.
See also: https://bugs.python.org/issue30167
"""
sys
.
modules
[
'test'
]
.
__cached__
=
None
site
.
abs_paths
()
self
.
assertIsNone
(
sys
.
modules
[
'test'
]
.
__cached__
)
def
test_no_duplicate_paths
(
self
):
# No duplicate paths should exist in sys.path
# Handled by removeduppaths()
...
...
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