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
47e00e5c
Kaydet (Commit)
47e00e5c
authored
Haz 22, 2016
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27365: Finish merge so tests pass.
üst
ca183efd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
help_about.py
Lib/idlelib/help_about.py
+1
-1
test_help_about.py
Lib/idlelib/idle_test/test_help_about.py
+12
-12
No files found.
Lib/idlelib/help_about.py
Dosyayı görüntüle @
47e00e5c
...
...
@@ -146,6 +146,6 @@ class AboutDialog(Toplevel):
if
__name__
==
'__main__'
:
import
unittest
unittest
.
main
(
'idlelib.idle_test.test_helpabout'
,
verbosity
=
2
,
exit
=
False
)
unittest
.
main
(
'idlelib.idle_test.test_help
_
about'
,
verbosity
=
2
,
exit
=
False
)
from
idlelib.idle_test.htest
import
run
run
(
AboutDialog
)
Lib/idlelib/idle_test/test_help_about.py
Dosyayı görüntüle @
47e00e5c
...
...
@@ -2,10 +2,10 @@
Coverage:
'''
from
idlelib
import
aboutDialog
as
help_about
from
idlelib
import
text
View
as
text
view
from
idlelib
import
help_about
from
idlelib
import
textview
from
idlelib.idle_test.mock_idle
import
Func
from
idlelib.idle_test.mock_tk
import
Mbox
from
idlelib.idle_test.mock_tk
import
Mbox
_func
import
unittest
About
=
help_about
.
AboutDialog
...
...
@@ -19,33 +19,33 @@ class Dummy_about_dialog():
class
DisplayFileTest
(
unittest
.
TestCase
):
"Test that .txt files are found and properly decoded."
dialog
=
Dummy_about_dialog
()
@classmethod
def
setUpClass
(
cls
):
cls
.
orig_
mbox
=
textview
.
tkMessageBox
cls
.
orig_
error
=
textview
.
showerror
cls
.
orig_view
=
textview
.
view_text
cls
.
mbox
=
Mbox
()
cls
.
error
=
Mbox_func
()
cls
.
view
=
Func
()
textview
.
tkMessageBox
=
cls
.
mbox
textview
.
showerror
=
cls
.
error
textview
.
view_text
=
cls
.
view
cls
.
About
=
Dummy_about_dialog
()
@classmethod
def
tearDownClass
(
cls
):
textview
.
tkMessageBox
=
cls
.
orig_mbox
textview
.
showerror
=
cls
.
orig_error
textview
.
view_text
=
cls
.
orig_view
def
test_file_isplay
(
self
):
for
handler
in
(
self
.
dialog
.
idle_credits
,
self
.
dialog
.
idle_readme
,
self
.
dialog
.
idle_news
):
self
.
mbox
.
show
error
.
message
=
''
self
.
error
.
message
=
''
self
.
view
.
called
=
False
handler
()
self
.
assertEqual
(
self
.
mbox
.
showerror
.
message
,
''
)
self
.
assertEqual
(
self
.
view
.
called
,
True
)
with
self
.
subTest
(
handler
=
handler
):
handler
()
self
.
assertEqual
(
self
.
error
.
message
,
''
)
self
.
assertEqual
(
self
.
view
.
called
,
True
)
if
__name__
==
'__main__'
:
...
...
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