From: Benjamin Peterson Date: Mon, 21 Jul 2008 22:05:34 +0000 (+0000) Subject: don't use assert statement X-Git-Tag: v2.6b3~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5574a0c290aac0ec581415fdd343641c00d5d42;p=thirdparty%2FPython%2Fcpython.git don't use assert statement --- diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index 3914ed0520a3..bb186d126f25 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py @@ -533,7 +533,7 @@ self.assert_(X.passed) def f(self): return x - assert x == 12 # Used to raise UnboundLocalError + self.assertEquals(x, 12) # Used to raise UnboundLocalError finally: sys.settrace(None)