Back to index

python3.2  3.2.2
Public Member Functions
lib2to3.tests.test_parser.TestExcept Class Reference
Inheritance diagram for lib2to3.tests.test_parser.TestExcept:
Inheritance graph
[legend]
Collaboration diagram for lib2to3.tests.test_parser.TestExcept:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_new
def test_old
def validate
def invalid_syntax

Detailed Description

Definition at line 94 of file test_parser.py.


Member Function Documentation

def lib2to3.tests.test_parser.GrammarTest.invalid_syntax (   self,
  code 
) [inherited]

Definition at line 27 of file test_parser.py.

00027 
00028     def invalid_syntax(self, code):
00029         try:
00030             self.validate(code)
00031         except ParseError:
00032             pass
00033         else:
00034             raise AssertionError("Syntax shouldn't have been valid")
00035 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 95 of file test_parser.py.

00095 
00096     def test_new(self):
00097         s = """
00098             try:
00099                 x
00100             except E as N:
00101                 y"""
00102         self.validate(s)

Here is the call graph for this function:

Definition at line 103 of file test_parser.py.

00103 
00104     def test_old(self):
00105         s = """
00106             try:
00107                 x
00108             except E, N:
00109                 y"""
00110         self.validate(s)
00111 
00112 
# Adapted from Python 3's Lib/test/test_grammar.py:GrammarTests.testAtoms

Here is the call graph for this function:

def lib2to3.tests.test_parser.GrammarTest.validate (   self,
  code 
) [inherited]

Reimplemented in lib2to3.tests.test_parser.TestLiterals.

Definition at line 24 of file test_parser.py.

00024 
00025     def validate(self, code):
00026         support.parse_string(code)

Here is the caller graph for this function:


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