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
78c330d7
Kaydet (Commit)
78c330d7
authored
Şub 27, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge with 3.3
üst
b5782de4
9db1ab82
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
3 deletions
+14
-3
README.txt
Lib/idlelib/idle_test/README.txt
+5
-3
test_formatparagraph.py
Lib/idlelib/idle_test/test_formatparagraph.py
+3
-0
test_idlehistory.py
Lib/idlelib/idle_test/test_idlehistory.py
+1
-0
test_searchengine.py
Lib/idlelib/idle_test/test_searchengine.py
+3
-0
test_text.py
Lib/idlelib/idle_test/test_text.py
+1
-0
test_idle.py
Lib/test/test_idle.py
+1
-0
No files found.
Lib/idlelib/idle_test/README.txt
Dosyayı görüntüle @
78c330d7
...
@@ -41,9 +41,10 @@ idle class. For the benefit of buildbot machines that do not have a graphics
...
@@ -41,9 +41,10 @@ idle class. For the benefit of buildbot machines that do not have a graphics
screen, gui tests must be 'guarded' by "requires('gui')" in a setUp
screen, gui tests must be 'guarded' by "requires('gui')" in a setUp
function or method. This will typically be setUpClass.
function or method. This will typically be setUpClass.
All gui objects must be destroyed by the end of the test, perhaps in a tearDown
To avoid interfering with other gui tests, all gui objects must be destroyed
function. Creating the Tk root directly in a setUp allows a reference to be saved
and deleted by the end of the test. If a widget, such as a Tk root, is created
so it can be properly destroyed in the corresponding tearDown.
in a setUpX function, destroy it in the corresponding tearDownX. For module
and class attributes, also delete the widget.
---
---
@classmethod
@classmethod
def setUpClass(cls):
def setUpClass(cls):
...
@@ -53,6 +54,7 @@ so it can be properly destroyed in the corresponding tearDown.
...
@@ -53,6 +54,7 @@ so it can be properly destroyed in the corresponding tearDown.
@classmethod
@classmethod
def tearDownClass(cls):
def tearDownClass(cls):
cls.root.destroy()
cls.root.destroy()
del cls.root
---
---
Support.requires('gui') returns true if it is either called in a main module
Support.requires('gui') returns true if it is either called in a main module
...
...
Lib/idlelib/idle_test/test_formatparagraph.py
Dosyayı görüntüle @
78c330d7
...
@@ -277,6 +277,9 @@ class FormatEventTest(unittest.TestCase):
...
@@ -277,6 +277,9 @@ class FormatEventTest(unittest.TestCase):
@classmethod
@classmethod
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
cls
.
root
.
destroy
()
cls
.
root
.
destroy
()
del
cls
.
root
del
cls
.
text
del
cls
.
formatter
def
test_short_line
(
self
):
def
test_short_line
(
self
):
self
.
text
.
insert
(
'1.0'
,
"Short line
\n
"
)
self
.
text
.
insert
(
'1.0'
,
"Short line
\n
"
)
...
...
Lib/idlelib/idle_test/test_idlehistory.py
Dosyayı görüntüle @
78c330d7
...
@@ -80,6 +80,7 @@ class FetchTest(unittest.TestCase):
...
@@ -80,6 +80,7 @@ class FetchTest(unittest.TestCase):
@classmethod
@classmethod
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
cls
.
root
.
destroy
()
cls
.
root
.
destroy
()
del
cls
.
root
def
fetch_test
(
self
,
reverse
,
line
,
prefix
,
index
,
*
,
bell
=
False
):
def
fetch_test
(
self
,
reverse
,
line
,
prefix
,
index
,
*
,
bell
=
False
):
# Perform one fetch as invoked by Alt-N or Alt-P
# Perform one fetch as invoked by Alt-N or Alt-P
...
...
Lib/idlelib/idle_test/test_searchengine.py
Dosyayı görüntüle @
78c330d7
...
@@ -64,6 +64,7 @@ class GetSelectionTest(unittest.TestCase):
...
@@ -64,6 +64,7 @@ class GetSelectionTest(unittest.TestCase):
## @classmethod
## @classmethod
## def tearDownClass(cls):
## def tearDownClass(cls):
## cls.root.destroy()
## cls.root.destroy()
## del cls.root
def
test_get_selection
(
self
):
def
test_get_selection
(
self
):
# text = Text(master=self.root)
# text = Text(master=self.root)
...
@@ -219,6 +220,7 @@ class SearchTest(unittest.TestCase):
...
@@ -219,6 +220,7 @@ class SearchTest(unittest.TestCase):
## @classmethod
## @classmethod
## def tearDownClass(cls):
## def tearDownClass(cls):
## cls.root.destroy()
## cls.root.destroy()
## del cls.root
def
test_search
(
self
):
def
test_search
(
self
):
Equal
=
self
.
assertEqual
Equal
=
self
.
assertEqual
...
@@ -261,6 +263,7 @@ class ForwardBackwardTest(unittest.TestCase):
...
@@ -261,6 +263,7 @@ class ForwardBackwardTest(unittest.TestCase):
## @classmethod
## @classmethod
## def tearDownClass(cls):
## def tearDownClass(cls):
## cls.root.destroy()
## cls.root.destroy()
## del cls.root
@classmethod
@classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
...
...
Lib/idlelib/idle_test/test_text.py
Dosyayı görüntüle @
78c330d7
...
@@ -221,6 +221,7 @@ class TkTextTest(TextTest, unittest.TestCase):
...
@@ -221,6 +221,7 @@ class TkTextTest(TextTest, unittest.TestCase):
@classmethod
@classmethod
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
cls
.
root
.
destroy
()
cls
.
root
.
destroy
()
del
cls
.
root
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
Lib/test/test_idle.py
Dosyayı görüntüle @
78c330d7
...
@@ -14,6 +14,7 @@ if use_resources and 'gui' in use_resources:
...
@@ -14,6 +14,7 @@ if use_resources and 'gui' in use_resources:
try
:
try
:
root
=
tk
.
Tk
()
root
=
tk
.
Tk
()
root
.
destroy
()
root
.
destroy
()
del
root
except
tk
.
TclError
:
except
tk
.
TclError
:
while
'gui'
in
use_resources
:
while
'gui'
in
use_resources
:
use_resources
.
remove
(
'gui'
)
use_resources
.
remove
(
'gui'
)
...
...
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