Back to index

python3.2  3.2.2
Public Member Functions
test.test_multibytecodec.Test_StreamReader Class Reference

List of all members.

Public Member Functions

def test_bug1728403

Detailed Description

Definition at line 162 of file test_multibytecodec.py.


Member Function Documentation

Definition at line 163 of file test_multibytecodec.py.

00163 
00164     def test_bug1728403(self):
00165         try:
00166             f = open(TESTFN, 'wb')
00167             try:
00168                 f.write(b'\xa1')
00169             finally:
00170                 f.close()
00171             f = codecs.open(TESTFN, encoding='cp949')
00172             try:
00173                 self.assertRaises(UnicodeDecodeError, f.read, 2)
00174             finally:
00175                 f.close()
00176         finally:
00177             support.unlink(TESTFN)

Here is the call graph for this function:


The documentation for this class was generated from the following file: