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
22d2711c
Kaydet (Commit)
22d2711c
authored
Şub 03, 2012
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #13861: Prevent test_apropos* test case failures in test_pydoc.
üst
fbc56fde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_pydoc.py
Lib/test/test_pydoc.py
+2
-2
No files found.
Lib/test/test_pydoc.py
Dosyayı görüntüle @
22d2711c
...
@@ -313,7 +313,7 @@ class PydocImportTest(unittest.TestCase):
...
@@ -313,7 +313,7 @@ class PydocImportTest(unittest.TestCase):
badsyntax
=
os
.
path
.
join
(
pkgdir
,
"__init__"
)
+
os
.
extsep
+
"py"
badsyntax
=
os
.
path
.
join
(
pkgdir
,
"__init__"
)
+
os
.
extsep
+
"py"
with
open
(
badsyntax
,
'w'
)
as
f
:
with
open
(
badsyntax
,
'w'
)
as
f
:
f
.
write
(
"invalid python syntax = $1
\n
"
)
f
.
write
(
"invalid python syntax = $1
\n
"
)
result
=
run_pydoc
(
'
nothing
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
result
=
run_pydoc
(
'
zqwykjv
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
self
.
assertEqual
(
''
,
result
)
self
.
assertEqual
(
''
,
result
)
def
test_apropos_with_unreadable_dir
(
self
):
def
test_apropos_with_unreadable_dir
(
self
):
...
@@ -323,7 +323,7 @@ class PydocImportTest(unittest.TestCase):
...
@@ -323,7 +323,7 @@ class PydocImportTest(unittest.TestCase):
self
.
addCleanup
(
os
.
rmdir
,
self
.
unreadable_dir
)
self
.
addCleanup
(
os
.
rmdir
,
self
.
unreadable_dir
)
# Note, on Windows the directory appears to be still
# Note, on Windows the directory appears to be still
# readable so this is not really testing the issue there
# readable so this is not really testing the issue there
result
=
run_pydoc
(
'
nothing
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
result
=
run_pydoc
(
'
zqwykjv
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
self
.
assertEqual
(
''
,
result
)
self
.
assertEqual
(
''
,
result
)
...
...
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