summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_uu.py8
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)