@skip('silverlight')
def test_iteration_no_mutation_bad_hash():
 import random
 class c(object, ):
  def __hash__(self):
   return int((random.random() * 200))
 l = [c() for i in xrange(1000)]
 b = set(l)
 for x in b:
  pass

@ skip ( 'silverlight' ) def test_iteration_no_mutation_bad_hash ( ) : import random class c ( object , ) : def __hash__ ( self ) : return int ( ( random . random ( ) * 200 ) ) l = [ c ( ) for i in xrange ( 1000 ) ] b = set ( l ) for x in b : pass
create a set w/ objects with a bad hash and enumerate through it .