Changeset 391 for python/trunk/Lib/test/test_uu.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_uu.py
r2 r391 49 49 try: 50 50 uu.decode(inp, out) 51 self.fail("No exception thrown")51 self.fail("No exception raised") 52 52 except uu.Error, e: 53 53 self.assertEqual(str(e), "Truncated input file") … … 58 58 try: 59 59 uu.decode(inp, out) 60 self.fail("No exception thrown")60 self.fail("No exception raised") 61 61 except uu.Error, e: 62 62 self.assertEqual(str(e), "No valid begin line found in input file") … … 162 162 self._kill(f) 163 163 164 def test_decode_filename(self): 165 f = None 166 try: 167 test_support.unlink(self.tmpin) 168 f = open(self.tmpin, 'w') 169 f.write(encodedtextwrapped % (0644, self.tmpout)) 170 f.close() 171 172 uu.decode(self.tmpin) 173 174 f = open(self.tmpout, 'r') 175 s = f.read() 176 f.close() 177 self.assertEqual(s, plaintext) 178 finally: 179 self._kill(f) 180 164 181 def test_decodetwice(self): 165 182 # Verify that decode() will refuse to overwrite an existing file
Note:
See TracChangeset
for help on using the changeset viewer.