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
b6076fb1
Kaydet (Commit)
b6076fb1
authored
Nis 21, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
üst
d73aca76
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
pydoc.py
Lib/pydoc.py
+1
-1
test_pydoc.py
Lib/test/test_pydoc.py
+8
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
b6076fb1
...
...
@@ -1590,7 +1590,7 @@ def resolve(thing, forceload=0):
"""Given an object or a path to an object, get the object and its name."""
if
isinstance
(
thing
,
str
):
object
=
locate
(
thing
,
forceload
)
if
not
object
:
if
object
is
None
:
raise
ImportError
(
'no Python documentation found for
%
r'
%
thing
)
return
object
,
thing
else
:
...
...
Lib/test/test_pydoc.py
Dosyayı görüntüle @
b6076fb1
...
...
@@ -1029,6 +1029,14 @@ class PydocWithMetaClasses(unittest.TestCase):
print_diffs
(
expected_text
,
result
)
self
.
fail
(
"outputs are not equal, see diff above"
)
def
test_resolve_false
(
self
):
# Issue #23008: pydoc enum.{,Int}Enum failed
# because bool(enum.Enum) is False.
with
captured_stdout
()
as
help_io
:
pydoc
.
help
(
'enum.Enum'
)
helptext
=
help_io
.
getvalue
()
self
.
assertIn
(
'class Enum'
,
helptext
)
@reap_threads
def
test_main
():
...
...
Misc/NEWS
Dosyayı görüntüle @
b6076fb1
...
...
@@ -31,6 +31,8 @@ Core and Builtins
Library
-------
- Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
- Fix asyncio issue 235: LifoQueue and PriorityQueue'
s
put
didn
't
increment unfinished tasks (this bug was introduced in 3.4.3 when
JoinableQueue was merged with Queue).
...
...
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