def test_hash(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     result = iobj.hash__Int(self.space, f1)
     assert result.intval == hash(x)
Esempio n. 2
0
 def test_hash(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     result = iobj.hash__Int(self.space, f1)
     assert result.intval == hash(x)