mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #21313: Tolerate truncated buildinfo in sys.version
This commit is contained in:
parent
1bf197eb14
commit
4e50553823
3 changed files with 30 additions and 4 deletions
|
@ -76,6 +76,22 @@ class PlatformTest(unittest.TestCase):
|
|||
('IronPython', '1.0.60816', '', '', '', '', '.NET 2.0.50727.42')),
|
||||
('IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42',
|
||||
('IronPython', '1.0.0', '', '', '', '', '.NET 2.0.50727.42')),
|
||||
('2.4.3 (truncation, date, t) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', 'date t', 'GCC')),
|
||||
('2.4.3 (truncation, date, ) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', 'date', 'GCC')),
|
||||
('2.4.3 (truncation, date,) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', 'date', 'GCC')),
|
||||
('2.4.3 (truncation, date) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', 'date', 'GCC')),
|
||||
('2.4.3 (truncation, d) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', 'd', 'GCC')),
|
||||
('2.4.3 (truncation, ) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', '', 'GCC')),
|
||||
('2.4.3 (truncation,) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', '', 'GCC')),
|
||||
('2.4.3 (truncation) \n[GCC]',
|
||||
('CPython', '2.4.3', '', '', 'truncation', '', 'GCC')),
|
||||
):
|
||||
# branch and revision are not "parsed", but fetched
|
||||
# from sys._mercurial. Ignore them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue