Kaydet (Commit) f5574a0c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

don't use assert statement

üst e4921fec
...@@ -533,7 +533,7 @@ self.assert_(X.passed) ...@@ -533,7 +533,7 @@ self.assert_(X.passed)
def f(self): def f(self):
return x return x
assert x == 12 # Used to raise UnboundLocalError self.assertEquals(x, 12) # Used to raise UnboundLocalError
finally: finally:
sys.settrace(None) sys.settrace(None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment