diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-25 04:17:38 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-25 04:17:38 +0000 |
commit | 40f5e4c5a20436e61e8cdcda9c5a3d0162f9435c (patch) | |
tree | cb9b8b17c22e590c9ae2456d6f0c3dc1c53c0f30 /Lib/test/test_uu.py | |
parent | fac02faed86989b46dd7271c172582d50b64c09c (diff) | |
download | cpython-git-40f5e4c5a20436e61e8cdcda9c5a3d0162f9435c.tar.gz |
Fix a bunch of UnboundLocalErrors when the tests fail.
Diffstat (limited to 'Lib/test/test_uu.py')
-rw-r--r-- | Lib/test/test_uu.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_uu.py b/Lib/test/test_uu.py index 9aad56e72e..346cfb2ced 100644 --- a/Lib/test/test_uu.py +++ b/Lib/test/test_uu.py @@ -112,6 +112,7 @@ class UUFileTest(unittest.TestCase): del self.tmpout def test_encode(self): + fin = fout = None try: fin = open(self.tmpin, 'wb') fin.write(plaintext) @@ -140,6 +141,7 @@ class UUFileTest(unittest.TestCase): self._kill(fout) def test_decode(self): + f = None try: f = open(self.tmpin, 'w') f.write(encodedtextwrapped % (0644, self.tmpout)) @@ -159,6 +161,7 @@ class UUFileTest(unittest.TestCase): def test_decodetwice(self): # Verify that decode() will refuse to overwrite an existing file + f = None try: f = cStringIO.StringIO(encodedtextwrapped % (0644, self.tmpout)) |