Commits

Benjamin Peterson committed 6e60645

cast boolean thing to int to make py3.3 happy

Comments (0)

Files changed (1)

_pytest/assertion/rewrite.py

         res_var = self.variable()
         expl_list = self.assign(ast.List([], ast.Load()))
         app = ast.Attribute(expl_list, "append", ast.Load())
-        is_or = isinstance(boolop.op, ast.Or)
+        is_or = int(isinstance(boolop.op, ast.Or))
         body = save = self.statements
         fail_save = self.on_failure
         levels = len(boolop.values) - 1