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:
Stan Ulbrych 2025-10-11 02:37:48 +01:00 committed by GitHub
parent ff7bb565d8
commit d4e5802588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 5 deletions

View file

@ -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