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
c377cbfd
Kaydet (Commit)
c377cbfd
authored
Nis 04, 2003
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF bug #715145: unittest.py still uses != in failUnlessEqual
üst
dee38ac7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
unittest.py
Lib/unittest.py
+2
-2
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/unittest.py
Dosyayı görüntüle @
c377cbfd
...
...
@@ -285,10 +285,10 @@ class TestCase:
raise
self
.
failureException
,
excName
def
failUnlessEqual
(
self
,
first
,
second
,
msg
=
None
):
"""Fail if the two objects are unequal as determined by the '
!
='
"""Fail if the two objects are unequal as determined by the '
=
='
operator.
"""
if
first
!
=
second
:
if
not
first
=
=
second
:
raise
self
.
failureException
,
\
(
msg
or
'
%
s !=
%
s'
%
(
`first`
,
`second`
))
...
...
Misc/NEWS
Dosyayı görüntüle @
c377cbfd
...
...
@@ -73,6 +73,10 @@ Extension modules
Library
-------
- unittest.failUnlessEqual and its equivalent unittest.assertEqual now
return '
not
a
==
b
' rather than '
a
!= b'. This gives the desired
result
for
classes
that
define
__eq__
without
defining
__ne__
.
-
sgmllib
now
supports
SGML
marked
sections
,
in
particular
the
MS
Office
extensions
.
...
...
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