Back to index

python3.2  3.2.2
Public Member Functions
test.test_iterlen.TestLengthHintExceptions Class Reference

List of all members.

Public Member Functions

def test_issue1242657
def test_invalid_hint

Detailed Description

Definition at line 216 of file

Member Function Documentation

Definition at line 227 of file

00228     def test_invalid_hint(self):
00229         # Make sure an invalid result doesn't muck-up the works
00230         self.assertEqual(list(NoneLengthHint()), list(range(10)))

Here is the call graph for this function:

Definition at line 218 of file

00219     def test_issue1242657(self):
00220         self.assertRaises(RuntimeError, list, BadLen())
00221         self.assertRaises(RuntimeError, list, BadLengthHint())
00222         self.assertRaises(RuntimeError, [].extend, BadLen())
00223         self.assertRaises(RuntimeError, [].extend, BadLengthHint())
00224         b = bytearray(range(10))
00225         self.assertRaises(RuntimeError, b.extend, BadLen())
00226         self.assertRaises(RuntimeError, b.extend, BadLengthHint())

Here is the call graph for this function:

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