diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-08 06:12:22 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-08 06:12:22 (GMT) |
commit | 4e50553823c16a65d80f6734b4ac303c18640380 (patch) | |
tree | 3aaf8fb8167af091664cfac37d2c337c1f33c3d6 /Lib/test/test_platform.py | |
parent | 1bf197eb14c5db5c43b3dc48687ae034690d34c4 (diff) | |
download | cpython-4e50553823c16a65d80f6734b4ac303c18640380.zip cpython-4e50553823c16a65d80f6734b4ac303c18640380.tar.gz cpython-4e50553823c16a65d80f6734b4ac303c18640380.tar.bz2 |
Issue #21313: Tolerate truncated buildinfo in sys.version
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r-- | Lib/test/test_platform.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 3e53212..ed18773 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -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 |