Back to index

python3.2  3.2.2
Public Member Functions
test.test_array.BadConstructorTest Class Reference

List of all members.

Public Member Functions

def test_constructor

Detailed Description

Definition at line 30 of file

Member Function Documentation

Definition at line 32 of file

00033     def test_constructor(self):
00034         self.assertRaises(TypeError, array.array)
00035         self.assertRaises(TypeError, array.array, spam=42)
00036         self.assertRaises(TypeError, array.array, 'xx')
00037         self.assertRaises(ValueError, array.array, 'x')
00039 tests.append(BadConstructorTest)
00041 # Machine format codes.
00042 #
00043 # Search for "enum machine_format_code" in Modules/arraymodule.c to get the
# authoritative values.

Here is the call graph for this function:

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