mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
Ned Deily.
This commit is contained in:
parent
52d42503d5
commit
b3bfc3d88b
2 changed files with 13 additions and 2 deletions
|
@ -2,13 +2,21 @@ import unittest
|
||||||
import tkinter
|
import tkinter
|
||||||
from tkinter import font
|
from tkinter import font
|
||||||
from test.support import requires, run_unittest
|
from test.support import requires, run_unittest
|
||||||
|
import tkinter.test.support as support
|
||||||
|
|
||||||
requires('gui')
|
requires('gui')
|
||||||
|
|
||||||
class FontTest(unittest.TestCase):
|
class FontTest(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
support.root_deiconify()
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
support.root_withdraw()
|
||||||
|
|
||||||
def test_font_eq(self):
|
def test_font_eq(self):
|
||||||
font1 = font.nametofont("system")
|
font1 = font.nametofont("TkDefaultFont")
|
||||||
font2 = font.nametofont("system")
|
font2 = font.nametofont("TkDefaultFont")
|
||||||
self.assertIsNot(font1, font2)
|
self.assertIsNot(font1, font2)
|
||||||
self.assertEqual(font1, font2)
|
self.assertEqual(font1, font2)
|
||||||
self.assertNotEqual(font1, font1.copy())
|
self.assertNotEqual(font1, font1.copy())
|
||||||
|
|
|
@ -207,6 +207,9 @@ Tools/Demos
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
|
||||||
|
Ned Deily.
|
||||||
|
|
||||||
- Issue #9894: Do not hardcode ENOENT in test_subprocess.
|
- Issue #9894: Do not hardcode ENOENT in test_subprocess.
|
||||||
|
|
||||||
- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
|
- Issue #9315: Added tests for the trace module. Patch by Eli Bendersky.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue