summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_platform.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-01-25 03:37:42 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-01-25 03:37:42 (GMT)
commit250014793e9ed7d6cfc6e25ac502bcb124895d23 (patch)
tree3dd61c6675bd5d79e391aeac5b47c1d9a33d96fb /Lib/test/test_platform.py
parentb19f43dbf059c46aca0e416bedb43c65c511f42b (diff)
downloadcpython-250014793e9ed7d6cfc6e25ac502bcb124895d23.zip
cpython-250014793e9ed7d6cfc6e25ac502bcb124895d23.tar.gz
cpython-250014793e9ed7d6cfc6e25ac502bcb124895d23.tar.bz2
Merged revisions 77735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77735 | benjamin.peterson | 2010-01-24 21:31:13 -0600 (Sun, 24 Jan 2010) | 1 line fix an UnboundLocalError when the release file is empty #7773 ........
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r--Lib/test/test_platform.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index 9b75234..af37185 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -191,6 +191,7 @@ class PlatformTest(unittest.TestCase):
('Red Hat Enterprise Linux release 4 (Nahant)', ('Red Hat Enterprise Linux', '4', 'Nahant')),
('CentOS release 4', ('CentOS', '4', None)),
('Rocks release 4.2.1 (Cydonia)', ('Rocks', '4.2.1', 'Cydonia')),
+ ('', ('', '', '')), # If there's nothing there.
):
self.assertEqual(platform._parse_release_file(input), output)