diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-01-25 03:31:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-01-25 03:31:13 (GMT) |
commit | a43f34cc2a7a55cea794ecb9bda2eea5c685d1f3 (patch) | |
tree | b9d565fb57073f0ce30bbeceab1120dee77f09c4 /Lib/test/test_platform.py | |
parent | aab24019777c5aee222b67e785a88c3e2909c5de (diff) | |
download | cpython-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/test_platform.py')
-rw-r--r-- | Lib/test/test_platform.py | 1 |
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) |