diff options
| author | Georg Brandl <georg@python.org> | 2010-02-06 23:34:10 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-02-06 23:34:10 (GMT) |
| commit | cd4a21bb8ea184c32d33d534d42bc08b57b405fb (patch) | |
| tree | 68a3315c73b810b11ab07509f5320f49f46b8694 /Lib/test/test_platform.py | |
| parent | bd564c3c21ef4c6d6cb0070870edd9d2f7c89d11 (diff) | |
| download | cpython-cd4a21bb8ea184c32d33d534d42bc08b57b405fb.zip cpython-cd4a21bb8ea184c32d33d534d42bc08b57b405fb.tar.gz cpython-cd4a21bb8ea184c32d33d534d42bc08b57b405fb.tar.bz2 | |
Fix more unbound locals in code paths that do not seem to be used.
Diffstat (limited to 'Lib/test/test_platform.py')
| -rw-r--r-- | Lib/test/test_platform.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index b51225e..b9f1a21 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -182,8 +182,10 @@ class PlatformTest(unittest.TestCase): if os.path.isdir(sys.executable) and \ os.path.exists(sys.executable+'.exe'): # Cygwin horror - executable = executable + '.exe' - res = platform.libc_ver(sys.executable) + executable = sys.executable + '.exe' + else: + executable = sys.executable + res = platform.libc_ver(executable) def test_parse_release_file(self): |
