Back to index

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

List of all members.

Public Member Functions

def test_new_octal_notation
def test_new_binary_notation
def validate
def invalid_syntax

Detailed Description

Definition at line 127 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 132 of file test_parser.py.

00132 
00133     def test_new_binary_notation(self):
00134         self.validate("""0b101010""")
00135         self.invalid_syntax("""0b0101021""")
00136 

Here is the call graph for this function:

Definition at line 128 of file test_parser.py.

00128 
00129     def test_new_octal_notation(self):
00130         self.validate("""0o7777777777777""")
00131         self.invalid_syntax("""0o7324528887""")

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: