Back to index

python3.2  3.2.2
Public Member Functions
test.test_flufl.FLUFLTests Class Reference

List of all members.

Public Member Functions

def test_barry_as_bdfl
def test_guido_as_bdfl

Detailed Description

Definition at line 4 of file test_flufl.py.


Member Function Documentation

Definition at line 6 of file test_flufl.py.

00006 
00007     def test_barry_as_bdfl(self):
00008         code = "from __future__ import barry_as_FLUFL; 2 {0} 3"
00009         compile(code.format('<>'), '<BDFL test>', 'exec',
00010                 __future__.CO_FUTURE_BARRY_AS_BDFL)
00011         self.assertRaises(SyntaxError, compile, code.format('!='),
00012                             '<FLUFL test>', 'exec',
00013                             __future__.CO_FUTURE_BARRY_AS_BDFL)

Here is the call graph for this function:

Definition at line 14 of file test_flufl.py.

00014 
00015     def test_guido_as_bdfl(self):
00016         code = '2 {0} 3'
00017         compile(code.format('!='), '<BDFL test>', 'exec')
00018         self.assertRaises(SyntaxError, compile, code.format('<>'),
00019                             '<FLUFL test>', 'exec')
00020 

Here is the call graph for this function:


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