Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_dis.CodeInfoTests Class Reference

List of all members.

Public Member Functions

def test_code_info
def test_show_code

Public Attributes


Static Public Attributes

list test_pairs

Detailed Description

Definition at line 344 of file

Member Function Documentation

Definition at line 354 of file

00355     def test_code_info(self):
00356         self.maxDiff = 1000
00357         for x, expected in self.test_pairs:
00358             self.assertRegex(dis.code_info(x), expected)

Definition at line 359 of file

00360     def test_show_code(self):
00361         self.maxDiff = 1000
00362         for x, expected in self.test_pairs:
00363             with captured_stdout() as output:
00364                 dis.show_code(x)
00365             self.assertRegex(output.getvalue(), expected+"\n")

Here is the call graph for this function:

Member Data Documentation

Definition at line 355 of file

Initial value:
      (dis.code_info, code_info_code_info),
      (tricky, code_info_tricky),
      (co_tricky_nested_f, code_info_tricky_nested_f),
      (expr_str, code_info_expr_str),
      (simple_stmt_str, code_info_simple_stmt_str),
      (compound_stmt_str, code_info_compound_stmt_str),

Definition at line 345 of file

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