Back to index

python3.2  3.2.2
Public Member Functions
test.test_set.TestWeirdBugs Class Reference

List of all members.

Public Member Functions

def test_8420_set_merge

Detailed Description

Definition at line 1680 of file test_set.py.


Member Function Documentation

Definition at line 1681 of file test_set.py.

01681 
01682     def test_8420_set_merge(self):
01683         # This used to segfault
01684         global be_bad, set2, dict2
01685         be_bad = False
01686         set1 = {bad_eq()}
01687         set2 = {bad_eq() for i in range(75)}
01688         be_bad = True
01689         self.assertRaises(ZeroDivisionError, set1.update, set2)
01690 
01691         be_bad = False
01692         set1 = {bad_dict_clear()}
01693         dict2 = {bad_dict_clear(): None}
01694         be_bad = True
01695         set1.symmetric_difference_update(dict2)
01696 
01697 # Application tests (based on David Eppstein's graph recipes ====================================

Here is the call graph for this function:


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