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
361467e5
Kaydet (Commit)
361467e5
authored
Nis 03, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#11282: the fail* methods will stay around a few more versions.
üst
9481e417
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
unittest.rst
Doc/library/unittest.rst
+1
-1
case.py
Lib/unittest/case.py
+1
-2
test_case.py
Lib/unittest/test/test_case.py
+2
-4
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
361467e5
...
...
@@ -1459,7 +1459,7 @@ along with their deprecated aliases:
:meth:`.assertRaisesRegex` assertRaisesRegexp
============================== ====================== ======================
.. deprecated
-removed:: 3.1 3.3
.. deprecated
:: 3.1
the fail* aliases listed in the second column.
.. deprecated:: 3.2
the assert* aliases listed in the third column.
...
...
Lib/unittest/case.py
Dosyayı görüntüle @
361467e5
...
...
@@ -1181,8 +1181,7 @@ class TestCase(object):
return
original_func
(
*
args
,
**
kwargs
)
return
deprecated_func
# The fail* methods can be removed in 3.3, the 5 assert* methods will
# have to stay around for a few more versions. See #9424.
# see #9424
failUnlessEqual
=
assertEquals
=
_deprecate
(
assertEqual
)
failIfEqual
=
assertNotEquals
=
_deprecate
(
assertNotEqual
)
failUnlessAlmostEqual
=
assertAlmostEquals
=
_deprecate
(
assertAlmostEqual
)
...
...
Lib/unittest/test/test_case.py
Dosyayı görüntüle @
361467e5
...
...
@@ -1088,10 +1088,8 @@ test case
_runtime_warn
(
"barz"
)
def
testDeprecatedMethodNames
(
self
):
"""Test that the deprecated methods raise a DeprecationWarning.
The fail* methods will be removed in 3.3. The assert* methods will
have to stay around for a few more versions. See #9424.
"""
Test that the deprecated methods raise a DeprecationWarning. See #9424.
"""
old
=
(
(
self
.
failIfEqual
,
(
3
,
5
)),
...
...
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