@@ -123,10 +123,6 @@ def test_sys_version(self):
123123 for input , output in (
124124 ('2.4.3 (#1, Jun 21 2006, 13:54:21) \n [GCC 3.3.4 (pre 3.3.5 20040809)]' ,
125125 ('CPython' , '2.4.3' , '' , '' , '1' , 'Jun 21 2006 13:54:21' , 'GCC 3.3.4 (pre 3.3.5 20040809)' )),
126- ('IronPython 1.0.60816 on .NET 2.0.50727.42' ,
127- ('IronPython' , '1.0.60816' , '' , '' , '' , '' , '.NET 2.0.50727.42' )),
128- ('IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42' ,
129- ('IronPython' , '1.0.0' , '' , '' , '' , '' , '.NET 2.0.50727.42' )),
130126 ('2.4.3 (truncation, date, t) \n [GCC]' ,
131127 ('CPython' , '2.4.3' , '' , '' , 'truncation' , 'date t' , 'GCC' )),
132128 ('2.4.3 (truncation, date, ) \n [GCC]' ,
@@ -161,20 +157,11 @@ def test_sys_version(self):
161157 ('r261:67515' , 'Dec 6 2008 15:26:00' ),
162158 'GCC 4.0.1 (Apple Computer, Inc. build 5370)' ),
163159
164- ("IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.3053" , None , "cli" )
160+ ("3.10.8 (tags/v3.10.8:aaaf517424, Feb 14 2023, 16:28:12) [GCC 9.4.0]" ,
161+ None , "linux" )
165162 :
166- ("IronPython" , "2.0.0" , "" , "" , ("" , "" ),
167- ".NET 2.0.50727.3053" ),
168-
169- ("2.6.1 (IronPython 2.6.1 (2.6.10920.0) on .NET 2.0.50727.1433)" , None , "cli" )
170- :
171- ("IronPython" , "2.6.1" , "" , "" , ("" , "" ),
172- ".NET 2.0.50727.1433" ),
173-
174- ("2.7.4 (IronPython 2.7.4 (2.7.0.40) on Mono 4.0.30319.1 (32-bit))" , None , "cli" )
175- :
176- ("IronPython" , "2.7.4" , "" , "" , ("" , "" ),
177- "Mono 4.0.30319.1 (32-bit)" ),
163+ ('CPython' , '3.10.8' , '' , '' ,
164+ ('tags/v3.10.8:aaaf517424' , 'Feb 14 2023 16:28:12' ), 'GCC 9.4.0' ),
178165
179166 ("2.5 (trunk:6107, Mar 26 2009, 13:02:18) \n [Java HotSpot(TM) Client VM (\" Apple Computer, Inc.\" )]" ,
180167 ('Jython' , 'trunk' , '6107' ), "java1.5.0_16" )
@@ -205,6 +192,9 @@ def test_sys_version(self):
205192 self .assertEqual (platform .python_build (), info [4 ])
206193 self .assertEqual (platform .python_compiler (), info [5 ])
207194
195+ with self .assertRaises (ValueError ):
196+ platform ._sys_version ('2. 4.3 (truncation) \n [GCC]' )
197+
208198 def test_system_alias (self ):
209199 res = platform .system_alias (
210200 platform .system (),
0 commit comments