Back to index

python3.2  3.2.2
Public Member Functions
lib2to3.tests.test_parser.GrammarTest Class Reference
Inheritance diagram for lib2to3.tests.test_parser.GrammarTest:
Inheritance graph

List of all members.

Public Member Functions

def validate
def invalid_syntax

Detailed Description

Definition at line 23 of file

Member Function Documentation

Definition at line 27 of file

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")

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in lib2to3.tests.test_parser.TestLiterals.

Definition at line 24 of file

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: