def test_invert(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     v = iobj.invert__Int(self.space, f1)
     assert v.intval == ~x
Example #2
0
 def test_invert(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     v = iobj.invert__Int(self.space, f1)
     assert v.intval == ~x