Commit dd83394b authored by Guido van Rossum's avatar Guido van Rossum

No need to define assert, it's built in.

parent d0f07c43
...@@ -83,8 +83,8 @@ x = 3.1e4 ...@@ -83,8 +83,8 @@ x = 3.1e4
print '1.1.3 String literals' print '1.1.3 String literals'
def assert(s): ##def assert(s):
if not s: raise TestFailed, 'see traceback' ## if not s: raise TestFailed, 'see traceback'
x = ''; y = ""; assert(len(x) == 0 and x == y) x = ''; y = ""; assert(len(x) == 0 and x == y)
x = '\''; y = "'"; assert(len(x) == 1 and x == y and ord(x) == 39) x = '\''; y = "'"; assert(len(x) == 1 and x == y and ord(x) == 39)
......
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