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
95d72192
Kaydet (Commit)
95d72192
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
7057f3fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
test_repr.py
Lib/test/test_repr.py
+9
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_repr.py
Dosyayı görüntüle @
95d72192
...
@@ -179,8 +179,15 @@ class ReprTests(unittest.TestCase):
...
@@ -179,8 +179,15 @@ class ReprTests(unittest.TestCase):
self
.
assertTrue
(
repr
(
x
)
.
startswith
(
'<read-only buffer for 0x'
))
self
.
assertTrue
(
repr
(
x
)
.
startswith
(
'<read-only buffer for 0x'
))
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
.
assertRegexpMatches
(
repr
(
x
),
r'<cell at 0x[0-9a-f]+: '
r'int object at 0x[0-9a-f]+>'
)
self
.
assertRegexpMatches
(
r
(
x
),
r'<cell at.*\.\.\..*>'
)
def
test_descriptors
(
self
):
def
test_descriptors
(
self
):
eq
=
self
.
assertEqual
eq
=
self
.
assertEqual
...
...
Misc/NEWS
Dosyayı görüntüle @
95d72192
...
@@ -77,6 +77,8 @@ IDLE
...
@@ -77,6 +77,8 @@ IDLE
Tests
Tests
-----
-----
- Issue #19928: Implemented a test for repr() of cell objects.
- Issue #19595: Re-enabled a long-disabled test in test_winsound.
- Issue #19595: Re-enabled a long-disabled test in test_winsound.
- Issue #19588: Fixed tests in test_random that were silently skipped most
- Issue #19588: Fixed tests in test_random that were silently skipped most
...
...
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