diff options
| author | Hye-Shik Chang <hyeshik@gmail.com> | 2006-07-06 15:21:52 +0000 |
|---|---|---|
| committer | Hye-Shik Chang <hyeshik@gmail.com> | 2006-07-06 15:21:52 +0000 |
| commit | f84cf8db4c1c96b606426d9ce9baaff59dfda039 (patch) | |
| tree | c4a11bcb180bd943861d05d6095b159c842227d7 | |
| parent | a54f53cc7709c33c77416ab74a09f7fb9d2e0eee (diff) | |
| download | cpython-f84cf8db4c1c96b606426d9ce9baaff59dfda039.tar.gz | |
Add a testcase for r47086 which fixed a bug in codec_getstreamcodec().
| -rw-r--r-- | Lib/test/test_multibytecodec.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index 276b9af0bb..78326b5e9d 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -6,7 +6,8 @@ from test import test_support from test import test_multibytecodec_support -import unittest, StringIO, codecs, sys +from test.test_support import TESTFN +import unittest, StringIO, codecs, sys, os class Test_MultibyteCodec(unittest.TestCase): @@ -25,6 +26,13 @@ class Test_MultibyteCodec(unittest.TestCase): self.assertRaises(IndexError, dec, 'apple\x92ham\x93spam', 'test.cjktest') + def test_codingspec(self): + print >> open(TESTFN, 'w'), '# coding: euc-kr' + try: + exec open(TESTFN) + finally: + os.unlink(TESTFN) + class Test_IncrementalEncoder(unittest.TestCase): def test_stateless(self): |
