diff options
| author | csabella <cheryl.sabella@gmail.com> | 2017-06-27 02:28:58 (GMT) |
|---|---|---|
| committer | terryjreedy <tjreedy@udel.edu> | 2017-06-27 02:28:58 (GMT) |
| commit | 9a02ae3d3d645f0c8178f3362694f473bab6fe3e (patch) | |
| tree | 4688ba714f5d637e0384d3e5f4ab4a5156c37902 /Lib/idlelib/idle_test/test_help_about.py | |
| parent | a7874c73c0c729bbec2fd4b077bd0eec276cfff4 (diff) | |
| download | cpython-9a02ae3d3d645f0c8178f3362694f473bab6fe3e.zip cpython-9a02ae3d3d645f0c8178f3362694f473bab6fe3e.tar.gz cpython-9a02ae3d3d645f0c8178f3362694f473bab6fe3e.tar.bz2 | |
bpo-24813: IDLE: Add build bitness to About Idle title (#2380)
Patch by Cheryl Sabella.
Diffstat (limited to 'Lib/idlelib/idle_test/test_help_about.py')
| -rw-r--r-- | Lib/idlelib/idle_test/test_help_about.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_help_about.py b/Lib/idlelib/idle_test/test_help_about.py index be1fadd..08c38a5 100644 --- a/Lib/idlelib/idle_test/test_help_about.py +++ b/Lib/idlelib/idle_test/test_help_about.py @@ -5,12 +5,15 @@ Coverage: 100% from test.support import requires, findfile from tkinter import Tk, TclError import unittest +from unittest import mock from idlelib.idle_test.mock_idle import Func from idlelib.idle_test.mock_tk import Mbox_func from idlelib.help_about import AboutDialog as About +from idlelib import help_about from idlelib import textview import os.path -from platform import python_version +from platform import python_version, architecture + class LiveDialogTest(unittest.TestCase): """Simulate user clicking buttons other than [Close]. @@ -31,6 +34,9 @@ class LiveDialogTest(unittest.TestCase): cls.root.destroy() del cls.root + def test_build_bits(self): + self.assertIn(help_about.build_bits(), ('32', '64')) + def test_dialog_title(self): """Test about dialog title""" self.assertEqual(self.dialog.title(), 'About IDLE') @@ -99,7 +105,9 @@ class DefaultTitleTest(unittest.TestCase): def test_dialog_title(self): """Test about dialog title""" - self.assertEqual(self.dialog.title(), f'About IDLE {python_version()}') + self.assertEqual(self.dialog.title(), + f'About IDLE {python_version()}' + f' ({help_about.build_bits()} bit)') class CloseTest(unittest.TestCase): |
