diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-11-21 18:55:56 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-11-21 18:55:56 (GMT) |
commit | 705fd474e9e7e55dbaff1f7ecfd5414c5272435d (patch) | |
tree | 8331c91b1abdad6bb00eaa3b425cf68141fb589e /Lib/test/test_uu.py | |
parent | c69d1c498f3896803f78de613a54d17be88bbeaf (diff) | |
download | cpython-705fd474e9e7e55dbaff1f7ecfd5414c5272435d.zip cpython-705fd474e9e7e55dbaff1f7ecfd5414c5272435d.tar.gz cpython-705fd474e9e7e55dbaff1f7ecfd5414c5272435d.tar.bz2 |
Add a test for uu.encode() that passed filenames as
in_file and out_file.
Diffstat (limited to 'Lib/test/test_uu.py')
-rw-r--r-- | Lib/test/test_uu.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_uu.py b/Lib/test/test_uu.py index 26d1a7a..7786316e 100644 --- a/Lib/test/test_uu.py +++ b/Lib/test/test_uu.py @@ -128,6 +128,14 @@ class UUFileTest(unittest.TestCase): s = fout.read() fout.close() self.assertEqual(s, encodedtextwrapped % (0644, self.tmpin)) + + # in_file and out_file as filenames + uu.encode(self.tmpin, self.tmpout, mode=0644) + fout = open(self.tmpout, 'r') + s = fout.read() + fout.close() + self.assertEqual(s, encodedtextwrapped % (0644, self.tmpin)) + finally: self._kill(fin) self._kill(fout) |