From 705fd474e9e7e55dbaff1f7ecfd5414c5272435d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Mon, 21 Nov 2005 18:55:56 +0000 Subject: [PATCH] Add a test for uu.encode() that passed filenames as in_file and out_file. --- Lib/test/test_uu.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Lib/test/test_uu.py b/Lib/test/test_uu.py index 26d1a7ab4fe..7786316e9d4 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)