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
0825e633
Kaydet (Commit)
0825e633
authored
May 17, 2016
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backports: #25747: remove bad test. #27044: stop test_idle from leaking.
üst
c742dff1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
configDialog.py
Lib/idlelib/configDialog.py
+10
-0
test_configdialog.py
Lib/idlelib/idle_test/test_configdialog.py
+1
-0
test_warning.py
Lib/idlelib/idle_test/test_warning.py
+0
-9
No files found.
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
0825e633
...
@@ -500,6 +500,16 @@ class ConfigDialog(Toplevel):
...
@@ -500,6 +500,16 @@ class ConfigDialog(Toplevel):
self
.
autoSave
.
trace_variable
(
'w'
,
self
.
VarChanged_autoSave
)
self
.
autoSave
.
trace_variable
(
'w'
,
self
.
VarChanged_autoSave
)
self
.
encoding
.
trace_variable
(
'w'
,
self
.
VarChanged_encoding
)
self
.
encoding
.
trace_variable
(
'w'
,
self
.
VarChanged_encoding
)
def
remove_var_callbacks
(
self
):
for
var
in
(
self
.
fontSize
,
self
.
fontName
,
self
.
fontBold
,
self
.
spaceNum
,
self
.
colour
,
self
.
builtinTheme
,
self
.
customTheme
,
self
.
themeIsBuiltin
,
self
.
highlightTarget
,
self
.
keyBinding
,
self
.
builtinKeys
,
self
.
customKeys
,
self
.
keysAreBuiltin
,
self
.
winWidth
,
self
.
winHeight
,
self
.
startupEdit
,
self
.
autoSave
,
self
.
encoding
,):
var
.
trace_vdelete
(
'w'
,
var
.
trace_vinfo
()[
0
][
1
])
def
VarChanged_font
(
self
,
*
params
):
def
VarChanged_font
(
self
,
*
params
):
'''When one font attribute changes, save them all, as they are
'''When one font attribute changes, save them all, as they are
not independent from each other. In particular, when we are
not independent from each other. In particular, when we are
...
...
Lib/idlelib/idle_test/test_configdialog.py
Dosyayı görüntüle @
0825e633
...
@@ -25,6 +25,7 @@ class ConfigDialogTest(unittest.TestCase):
...
@@ -25,6 +25,7 @@ class ConfigDialogTest(unittest.TestCase):
def
test_dialog
(
self
):
def
test_dialog
(
self
):
d
=
ConfigDialog
(
self
.
root
,
'Test'
,
_utest
=
True
)
d
=
ConfigDialog
(
self
.
root
,
'Test'
,
_utest
=
True
)
d
.
remove_var_callbacks
()
d
.
destroy
()
d
.
destroy
()
...
...
Lib/idlelib/idle_test/test_warning.py
Dosyayı görüntüle @
0825e633
...
@@ -68,15 +68,6 @@ class ShellWarnTest(unittest.TestCase):
...
@@ -68,15 +68,6 @@ class ShellWarnTest(unittest.TestCase):
'Test'
,
UserWarning
,
'test_warning.py'
,
99
,
f
,
'Line of code'
)
'Test'
,
UserWarning
,
'test_warning.py'
,
99
,
f
,
'Line of code'
)
self
.
assertEqual
(
shellmsg
.
splitlines
(),
f
.
getvalue
()
.
splitlines
())
self
.
assertEqual
(
shellmsg
.
splitlines
(),
f
.
getvalue
()
.
splitlines
())
class
ImportWarnTest
(
unittest
.
TestCase
):
def
test_idlever
(
self
):
with
warnings
.
catch_warnings
(
record
=
True
)
as
w
:
warnings
.
simplefilter
(
"always"
)
import
idlelib.idlever
self
.
assertEqual
(
len
(
w
),
1
)
self
.
assertTrue
(
issubclass
(
w
[
-
1
]
.
category
,
DeprecationWarning
))
self
.
assertIn
(
"version"
,
str
(
w
[
-
1
]
.
message
))
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
(
verbosity
=
2
,
exit
=
False
)
unittest
.
main
(
verbosity
=
2
,
exit
=
False
)
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