mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-96491: Deduplicate version in IDLE shell title (#139841)
Saving to a file added both the filename and repeated the version. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
ff7bb565d8
commit
d4e5802588
5 changed files with 10 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
"Test outwin, coverage 76%."
|
||||
|
||||
from idlelib import outwin
|
||||
import platform
|
||||
import sys
|
||||
import unittest
|
||||
from test.support import requires
|
||||
|
|
@ -41,7 +42,7 @@ def test_ispythonsource(self):
|
|||
self.assertFalse(w.ispythonsource(__file__))
|
||||
|
||||
def test_window_title(self):
|
||||
self.assertEqual(self.window.top.title(), 'Output')
|
||||
self.assertEqual(self.window.top.title(), 'Output' + ' (%s)' % platform.python_version())
|
||||
|
||||
def test_maybesave(self):
|
||||
w = self.window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue