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
b7af6207
Kaydet (Commit)
b7af6207
authored
Nis 03, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
#11282: merge with 3.2.
üst
c9a5272e
361467e5
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 @
b7af6207
...
@@ -1462,7 +1462,7 @@ along with their deprecated aliases:
...
@@ -1462,7 +1462,7 @@ along with their deprecated aliases:
:meth:`.assertRaisesRegex` assertRaisesRegexp
:meth:`.assertRaisesRegex` assertRaisesRegexp
============================== ====================== ======================
============================== ====================== ======================
.. deprecated
-removed:: 3.1 3.3
.. deprecated
:: 3.1
the fail* aliases listed in the second column.
the fail* aliases listed in the second column.
.. deprecated:: 3.2
.. deprecated:: 3.2
the assert* aliases listed in the third column.
the assert* aliases listed in the third column.
...
...
Lib/unittest/case.py
Dosyayı görüntüle @
b7af6207
...
@@ -1110,8 +1110,7 @@ class TestCase(object):
...
@@ -1110,8 +1110,7 @@ class TestCase(object):
return
original_func
(
*
args
,
**
kwargs
)
return
original_func
(
*
args
,
**
kwargs
)
return
deprecated_func
return
deprecated_func
# The fail* methods can be removed in 3.3, the 5 assert* methods will
# see #9424
# have to stay around for a few more versions. See #9424.
assertEquals
=
_deprecate
(
assertEqual
)
assertEquals
=
_deprecate
(
assertEqual
)
assertNotEquals
=
_deprecate
(
assertNotEqual
)
assertNotEquals
=
_deprecate
(
assertNotEqual
)
assertAlmostEquals
=
_deprecate
(
assertAlmostEqual
)
assertAlmostEquals
=
_deprecate
(
assertAlmostEqual
)
...
...
Lib/unittest/test/test_case.py
Dosyayı görüntüle @
b7af6207
...
@@ -1093,10 +1093,8 @@ test case
...
@@ -1093,10 +1093,8 @@ test case
_runtime_warn
(
"barz"
)
_runtime_warn
(
"barz"
)
def
testDeprecatedMethodNames
(
self
):
def
testDeprecatedMethodNames
(
self
):
"""Test that the deprecated methods raise a DeprecationWarning.
"""
Test that the deprecated methods raise a DeprecationWarning. See #9424.
The fail* methods will be removed in 3.3. The assert* methods will
have to stay around for a few more versions. See #9424.
"""
"""
old
=
(
old
=
(
(
self
.
assertNotEquals
,
(
3
,
5
)),
(
self
.
assertNotEquals
,
(
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