1 #! -*- coding: koi8-r -*-
2 # This file is marked as binary in SVN, to prevent MacCVS from recoding it.
5 from test
import test_support
7 class PEP263Test(unittest
.TestCase
):
11 u
"ðÉÔÏÎ".encode("utf-8"),
12 '\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
15 u
"\ð".encode("utf-8"),
19 def test_compilestring(self
):
21 c
= compile("\n# coding: utf-8\nu = u'\xc3\xb3'\n", "dummy", "exec")
24 self
.assertEqual(d
['u'], u
'\xf3')
28 test_support
.run_unittest(PEP263Test
)
30 if __name__
=="__main__":