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
1f79cdfb
Kaydet (Commit)
1f79cdfb
authored
Ara 10, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19928: Implemented a test for repr() of cell objects.
üst
9df8a1c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
test_reprlib.py
Lib/test/test_reprlib.py
+9
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_reprlib.py
Dosyayı görüntüle @
1f79cdfb
...
@@ -166,10 +166,16 @@ class ReprTests(unittest.TestCase):
...
@@ -166,10 +166,16 @@ class ReprTests(unittest.TestCase):
eq
(
r
([[[[[[{}]]]]]]),
"[[[[[[{}]]]]]]"
)
eq
(
r
([[[[[[{}]]]]]]),
"[[[[[[{}]]]]]]"
)
eq
(
r
([[[[[[[{}]]]]]]]),
"[[[[[[[...]]]]]]]"
)
eq
(
r
([[[[[[[{}]]]]]]]),
"[[[[[[[...]]]]]]]"
)
@unittest.skip
(
'hard to catch a cell object'
)
def
test_cell
(
self
):
def
test_cell
(
self
):
# XXX Hmm? How to get at a cell object?
def
get_cell
():
pass
x
=
42
def
inner
():
return
x
return
inner
x
=
get_cell
()
.
__closure__
[
0
]
self
.
assertRegex
(
repr
(
x
),
r'<cell at 0x[0-9a-f]+: int object at 0x[0-9a-f]+>'
)
self
.
assertRegex
(
r
(
x
),
r'<cell at 0x.*\.\.\..*>'
)
def
test_descriptors
(
self
):
def
test_descriptors
(
self
):
eq
=
self
.
assertEqual
eq
=
self
.
assertEqual
...
...
Misc/NEWS
Dosyayı görüntüle @
1f79cdfb
...
@@ -114,6 +114,8 @@ IDLE
...
@@ -114,6 +114,8 @@ IDLE
Tests
Tests
-----
-----
- Issue #19928: Implemented a test for repr() of cell objects.
- Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
- Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
...
...
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