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
5c29424f
Kaydet (Commit)
5c29424f
authored
Ara 08, 2013
tarafından
Eric Snow
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19758: silence PendingDeprecationWarnings in test_importlib.
üst
c0e71cd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
test_spec.py
Lib/test/test_importlib/test_spec.py
+8
-4
No files found.
Lib/test/test_importlib/test_spec.py
Dosyayı görüntüle @
5c29424f
...
...
@@ -10,6 +10,7 @@ import os.path
from
test.support
import
CleanImport
import
unittest
import
sys
import
warnings
...
...
@@ -55,10 +56,13 @@ class LegacyLoader(TestLoader):
HAM
=
-
1
@frozen_util.module_for_loader
def
load_module
(
self
,
module
):
module
.
ham
=
self
.
HAM
return
module
with
warnings
.
catch_warnings
():
warnings
.
simplefilter
(
"ignore"
,
PendingDeprecationWarning
)
@frozen_util.module_for_loader
def
load_module
(
self
,
module
):
module
.
ham
=
self
.
HAM
return
module
class
ModuleSpecTests
:
...
...
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