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
4a0f8b89
Kaydet (Commit)
4a0f8b89
authored
Mar 21, 2010
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Silence more py3k warnings in unittest.case.
üst
236da4be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
case.py
Lib/unittest/case.py
+2
-2
No files found.
Lib/unittest/case.py
Dosyayı görüntüle @
4a0f8b89
...
...
@@ -568,7 +568,7 @@ class TestCase(object):
msg: Optional message to use on failure instead of a list of
differences.
"""
if
seq_type
!=
None
:
if
seq_type
is
not
None
:
seq_type_name
=
seq_type
.
__name__
if
not
isinstance
(
seq1
,
seq_type
):
raise
self
.
failureException
(
'First sequence is not a
%
s:
%
s'
...
...
@@ -802,7 +802,7 @@ class TestCase(object):
with
warnings
.
catch_warnings
():
if
sys
.
py3kwarning
:
# Silence Py3k warning raised during the sorting
for
_msg
in
[
"
dict
inequality comparisons"
,
for
_msg
in
[
"
(code|dict|type)
inequality comparisons"
,
"builtin_function_or_method order comparisons"
,
"comparing unequal types"
]:
warnings
.
filterwarnings
(
"ignore"
,
_msg
,
DeprecationWarning
)
...
...
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