mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
No need to define assert, it's built in.
This commit is contained in:
parent
b5d20393b1
commit
505043f35e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue