gh-133604: remove deprecated java_ver function (#133888)

This commit is contained in:
Alexey Makridenko 2025-05-16 16:17:54 +02:00 committed by GitHub
parent 62f66caa8c
commit 7a4a6cf2b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 13 additions and 94 deletions

View file

@ -383,15 +383,6 @@ class PlatformTest(unittest.TestCase):
finally:
platform._uname_cache = None
def test_java_ver(self):
import re
msg = re.escape(
"'java_ver' is deprecated and slated for removal in Python 3.15"
)
with self.assertWarnsRegex(DeprecationWarning, msg):
res = platform.java_ver()
self.assertEqual(len(res), 4)
@unittest.skipUnless(support.MS_WINDOWS, 'This test only makes sense on Windows')
def test_win32_ver(self):
release1, version1, csd1, ptype1 = 'a', 'b', 'c', 'd'