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
f28d54d3
Kaydet (Commit)
f28d54d3
authored
Nis 23, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Use more precise Tcl version checks in tests.
üst
b5a3d9be
3bd66abb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
test_widgets.py
Lib/tkinter/test/test_tkinter/test_widgets.py
+2
-2
test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py
+4
-2
No files found.
Lib/tkinter/test/test_tkinter/test_widgets.py
Dosyayı görüntüle @
f28d54d3
...
@@ -1041,7 +1041,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1041,7 +1041,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
def
test_paneconfigure_height
(
self
):
def
test_paneconfigure_height
(
self
):
p
,
b
,
c
=
self
.
create2
()
p
,
b
,
c
=
self
.
create2
()
self
.
check_paneconfigure
(
p
,
b
,
'height'
,
10
,
10
,
self
.
check_paneconfigure
(
p
,
b
,
'height'
,
10
,
10
,
stringify
=
tcl_version
<
(
8
,
5
))
stringify
=
get_tk_patchlevel
()
<
(
8
,
5
,
11
))
self
.
check_paneconfigure_bad
(
p
,
b
,
'height'
,
self
.
check_paneconfigure_bad
(
p
,
b
,
'height'
,
'bad screen distance "badValue"'
)
'bad screen distance "badValue"'
)
...
@@ -1089,7 +1089,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1089,7 +1089,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
def
test_paneconfigure_width
(
self
):
def
test_paneconfigure_width
(
self
):
p
,
b
,
c
=
self
.
create2
()
p
,
b
,
c
=
self
.
create2
()
self
.
check_paneconfigure
(
p
,
b
,
'width'
,
10
,
10
,
self
.
check_paneconfigure
(
p
,
b
,
'width'
,
10
,
10
,
stringify
=
tcl_version
<
(
8
,
5
))
stringify
=
get_tk_patchlevel
()
<
(
8
,
5
,
11
))
self
.
check_paneconfigure_bad
(
p
,
b
,
'width'
,
self
.
check_paneconfigure_bad
(
p
,
b
,
'width'
,
'bad screen distance "badValue"'
)
'bad screen distance "badValue"'
)
...
...
Lib/tkinter/test/test_ttk/test_widgets.py
Dosyayı görüntüle @
f28d54d3
...
@@ -352,7 +352,8 @@ class ComboboxTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -352,7 +352,8 @@ class ComboboxTest(AbstractWidgetTest, unittest.TestCase):
expected
=
(
'mon'
,
'tue'
,
'wed'
,
'thur'
))
expected
=
(
'mon'
,
'tue'
,
'wed'
,
'thur'
))
self
.
checkParam
(
self
.
combo
,
'values'
,
(
'mon'
,
'tue'
,
'wed'
,
'thur'
))
self
.
checkParam
(
self
.
combo
,
'values'
,
(
'mon'
,
'tue'
,
'wed'
,
'thur'
))
self
.
checkParam
(
self
.
combo
,
'values'
,
(
42
,
3.14
,
''
,
'any string'
))
self
.
checkParam
(
self
.
combo
,
'values'
,
(
42
,
3.14
,
''
,
'any string'
))
self
.
checkParam
(
self
.
combo
,
'values'
,
''
,
expected
=
())
self
.
checkParam
(
self
.
combo
,
'values'
,
''
,
expected
=
''
if
get_tk_patchlevel
()
<
(
8
,
5
,
10
)
else
())
self
.
combo
[
'values'
]
=
[
'a'
,
1
,
'c'
]
self
.
combo
[
'values'
]
=
[
'a'
,
1
,
'c'
]
...
@@ -1125,7 +1126,8 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
...
@@ -1125,7 +1126,8 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
self
.
checkParam
(
widget
,
'columns'
,
'a b c'
,
self
.
checkParam
(
widget
,
'columns'
,
'a b c'
,
expected
=
(
'a'
,
'b'
,
'c'
))
expected
=
(
'a'
,
'b'
,
'c'
))
self
.
checkParam
(
widget
,
'columns'
,
(
'a'
,
'b'
,
'c'
))
self
.
checkParam
(
widget
,
'columns'
,
(
'a'
,
'b'
,
'c'
))
self
.
checkParam
(
widget
,
'columns'
,
())
self
.
checkParam
(
widget
,
'columns'
,
(),
expected
=
''
if
get_tk_patchlevel
()
<
(
8
,
5
,
10
)
else
())
def
test_displaycolumns
(
self
):
def
test_displaycolumns
(
self
):
widget
=
self
.
create
()
widget
=
self
.
create
()
...
...
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