]> granicus.if.org Git - python/commitdiff
No need to define assert, it's built in.
authorGuido van Rossum <guido@python.org>
Wed, 16 Apr 1997 00:27:45 +0000 (00:27 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 16 Apr 1997 00:27:45 +0000 (00:27 +0000)
Lib/test/test_grammar.py

index b9607ac18b534cbb185367b2c8f783e7383573d9..21012d2d8e8793fa3627d811ad44fab76294c5da 100644 (file)
@@ -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)