From: Guido van Rossum Date: Wed, 16 Apr 1997 00:27:45 +0000 (+0000) Subject: No need to define assert, it's built in. X-Git-Tag: v1.5a1~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=505043f35ee96e1733e8e055bdb53cf2c0e231c9;p=python No need to define assert, it's built in. --- diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index b9607ac18b..21012d2d8e 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -83,8 +83,8 @@ x = 3.1e4 print '1.1.3 String literals' -def assert(s): - if not s: raise TestFailed, 'see traceback' +##def assert(s): +## if not s: raise TestFailed, 'see traceback' x = ''; y = ""; assert(len(x) == 0 and x == y) x = '\''; y = "'"; assert(len(x) == 1 and x == y and ord(x) == 39)