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
8ff3a5a9
Kaydet (Commit)
8ff3a5a9
authored
Tem 21, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #24678: Fixed raiseExceptions typo in logging tests.
Patch by Jacek Kołodziej.
üst
8d603f17
296b347d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
test_logging.py
Lib/test/test_logging.py
+4
-10
No files found.
Lib/test/test_logging.py
Dosyayı görüntüle @
8ff3a5a9
...
...
@@ -3779,18 +3779,12 @@ class LoggerTest(BaseTest):
(
exc
.
__class__
,
exc
,
exc
.
__traceback__
))
def
test_log_invalid_level_with_raise
(
self
):
old_raise
=
logging
.
raiseExceptions
self
.
addCleanup
(
setattr
,
logging
,
'raiseExecptions'
,
old_raise
)
logging
.
raiseExceptions
=
True
self
.
assertRaises
(
TypeError
,
self
.
logger
.
log
,
'10'
,
'test message'
)
with
support
.
swap_attr
(
logging
,
'raiseExceptions'
,
True
):
self
.
assertRaises
(
TypeError
,
self
.
logger
.
log
,
'10'
,
'test message'
)
def
test_log_invalid_level_no_raise
(
self
):
old_raise
=
logging
.
raiseExceptions
self
.
addCleanup
(
setattr
,
logging
,
'raiseExecptions'
,
old_raise
)
logging
.
raiseExceptions
=
False
self
.
logger
.
log
(
'10'
,
'test message'
)
# no exception happens
with
support
.
swap_attr
(
logging
,
'raiseExceptions'
,
False
):
self
.
logger
.
log
(
'10'
,
'test message'
)
# no exception happens
def
test_find_caller_with_stack_info
(
self
):
called
=
[]
...
...
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