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
ac803cd2
Kaydet (Commit)
ac803cd2
authored
Haz 21, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #24408: Fixed test for tkinter.Font on OS X.
Based on patch by Martin Panter.
üst
6d58f8dc
753a1dfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
test_font.py
Lib/tkinter/test/test_tkinter/test_font.py
+10
-1
No files found.
Lib/tkinter/test/test_tkinter/test_font.py
Dosyayı görüntüle @
ac803cd2
...
...
@@ -75,10 +75,19 @@ class FontTest(AbstractTkTest, unittest.TestCase):
def
test_families
(
self
):
families
=
font
.
families
(
self
.
root
)
self
.
assertIn
(
self
.
font
.
actual
(
'family'
),
families
)
self
.
assertIsInstance
(
families
,
tuple
)
self
.
assertTrue
(
families
)
for
family
in
families
:
self
.
assertIsInstance
(
family
,
str
)
self
.
assertTrue
(
family
)
def
test_names
(
self
):
names
=
font
.
names
(
self
.
root
)
self
.
assertIsInstance
(
names
,
tuple
)
self
.
assertTrue
(
names
)
for
name
in
names
:
self
.
assertIsInstance
(
name
,
str
)
self
.
assertTrue
(
name
)
self
.
assertIn
(
fontname
,
names
)
tests_gui
=
(
FontTest
,
)
...
...
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