import unittest
import Tkinter as tkinter
import tkFont as font
-from test.test_support import requires, run_unittest
+from test.test_support import requires, run_unittest, gc_collect
from test_ttk.support import AbstractTkTest
requires('gui')
self.assertIsInstance(self.font.cget(key), sizetype)
self.assertIsInstance(self.font[key], sizetype)
+ def test_unicode_family(self):
+ family = u'MS \u30b4\u30b7\u30c3\u30af'
+ try:
+ f = font.Font(root=self.root, family=family, exists=True)
+ except tkinter.TclError:
+ f = font.Font(root=self.root, family=family, exists=False)
+ self.assertEqual(f.cget('family'), family)
+ del f
+ gc_collect()
+
def test_actual(self):
options = self.font.actual()
self.assertGreaterEqual(set(options),
Library
-------
+- bpo-30310: tkFont now supports unicode options (e.g. font family).
+
- bpo-30414: multiprocessing.Queue._feed background running
thread do not break from main loop on exception.