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
bce9a5d5
Kaydet (Commit)
bce9a5d5
authored
Mar 02, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#17334: test_index now works with unittest test discovery. Patch by Zachary Ware.
üst
02bf701b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
21 deletions
+11
-21
test_index.py
Lib/test/test_index.py
+8
-21
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_index.py
Dosyayı görüntüle @
bce9a5d5
...
...
@@ -56,7 +56,7 @@ class BaseTestCase(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
slice
(
self
.
n
)
.
indices
,
0
)
class
SeqTestCase
(
unittest
.
TestCase
)
:
class
SeqTestCase
:
# This test case isn't run directly. It just defines common tests
# to the different sequence types below
def
setUp
(
self
):
...
...
@@ -126,7 +126,7 @@ class SeqTestCase(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
sliceobj
,
self
.
n
,
self
)
class
ListTestCase
(
SeqTestCase
):
class
ListTestCase
(
SeqTestCase
,
unittest
.
TestCase
):
seq
=
[
0
,
10
,
20
,
30
,
40
,
50
]
def
test_setdelitem
(
self
):
...
...
@@ -182,19 +182,19 @@ class NewSeq:
return
self
.
_list
[
index
]
class
TupleTestCase
(
SeqTestCase
):
class
TupleTestCase
(
SeqTestCase
,
unittest
.
TestCase
):
seq
=
(
0
,
10
,
20
,
30
,
40
,
50
)
class
ByteArrayTestCase
(
SeqTestCase
):
class
ByteArrayTestCase
(
SeqTestCase
,
unittest
.
TestCase
):
seq
=
bytearray
(
b
"this is a test"
)
class
BytesTestCase
(
SeqTestCase
):
class
BytesTestCase
(
SeqTestCase
,
unittest
.
TestCase
):
seq
=
b
"this is a test"
class
StringTestCase
(
SeqTestCase
):
class
StringTestCase
(
SeqTestCase
,
unittest
.
TestCase
):
seq
=
"this is a test"
class
NewSeqTestCase
(
SeqTestCase
):
class
NewSeqTestCase
(
SeqTestCase
,
unittest
.
TestCase
):
seq
=
NewSeq
((
0
,
10
,
20
,
30
,
40
,
50
))
...
...
@@ -237,18 +237,5 @@ class OverflowTestCase(unittest.TestCase):
self
.
assertRaises
(
OverflowError
,
lambda
:
"a"
*
self
.
neg
)
def
test_main
():
support
.
run_unittest
(
BaseTestCase
,
ListTestCase
,
TupleTestCase
,
BytesTestCase
,
ByteArrayTestCase
,
StringTestCase
,
NewSeqTestCase
,
RangeTestCase
,
OverflowTestCase
,
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
Dosyayı görüntüle @
bce9a5d5
...
...
@@ -644,6 +644,9 @@ Tests
- Issue #15539: Added regression tests for Tools/scripts/pindent.py.
- Issue #17334: test_index now works with unittest test discovery.
Patch by Zachary Ware.
- Issue #17333: test_imaplib now works with unittest test discovery.
Patch by Zachary Ware.
...
...
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