Back to index

python3.2  3.2.2
Public Member Functions
test.test_pep3120.BuiltinCompileTests Class Reference

List of all members.

Public Member Functions

def test_latin1

Detailed Description

Definition at line 28 of file test_pep3120.py.


Member Function Documentation

Definition at line 31 of file test_pep3120.py.

00031 
00032     def test_latin1(self):
00033         # Allow compile() to read Latin-1 source.
00034         source_code = '# coding: Latin-1\nu = "Ç"\n'.encode("Latin-1")
00035         try:
00036             code = compile(source_code, '<dummy>', 'exec')
00037         except SyntaxError:
00038             self.fail("compile() cannot handle Latin-1 source")
00039         ns = {}
00040         exec(code, ns)
00041         self.assertEqual('Ç', ns['u'])
00042 

Here is the call graph for this function:


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