mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix more unbound locals in code paths that do not seem to be used.
This commit is contained in:
parent
bd564c3c21
commit
cd4a21bb8e
3 changed files with 8 additions and 4 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue