summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-01-25 03:31:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-01-25 03:31:13 (GMT)
commita43f34cc2a7a55cea794ecb9bda2eea5c685d1f3 (patch)
treeb9d565fb57073f0ce30bbeceab1120dee77f09c4 /Lib/test
parentaab24019777c5aee222b67e785a88c3e2909c5de (diff)
downloadcpython-a43f34cc2a7a55cea794ecb9bda2eea5c685d1f3.zip
cpython-a43f34cc2a7a55cea794ecb9bda2eea5c685d1f3.tar.gz
cpython-a43f34cc2a7a55cea794ecb9bda2eea5c685d1f3.tar.bz2
fix an UnboundLocalError when the release file is empty #7773
Diffstat (limited to 'Lib/test')
-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 bd3b234..b51225e 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -198,6 +198,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)