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
f41fa4f3
Kaydet (Commit)
f41fa4f3
authored
12 years ago
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge with 3.3
üst
611afc1b
e7387b47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
test_api.py
Lib/test/test_importlib/test_api.py
+10
-7
No files found.
Lib/test/test_importlib/test_api.py
Dosyayı görüntüle @
f41fa4f3
...
...
@@ -4,6 +4,7 @@ import importlib
from
importlib
import
machinery
import
sys
from
test
import
support
import
types
import
unittest
...
...
@@ -175,13 +176,15 @@ class FrozenImportlibTests(unittest.TestCase):
machinery
.
FrozenImporter
))
def
test_main
():
from
test.support
import
run_unittest
run_unittest
(
ImportModuleTests
,
FindLoaderTests
,
InvalidateCacheTests
,
FrozenImportlibTests
)
class
StartupTests
(
unittest
.
TestCase
):
def
test_everyone_has___loader__
(
self
):
# Issue #17098: all modules should have __loader__ defined.
for
name
,
module
in
sys
.
modules
.
items
():
if
isinstance
(
module
,
types
.
ModuleType
):
self
.
assertTrue
(
hasattr
(
module
,
'__loader__'
),
'{!r} lacks a __loader__ attribute'
.
format
(
name
))
if
__name__
==
'__main__'
:
test_
main
()
unittest
.
main
()
This diff is collapsed.
Click to expand it.
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