summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-16 00:27:45 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-16 00:27:45 (GMT)
commit505043f35ee96e1733e8e055bdb53cf2c0e231c9 (patch)
treedb364c382a7665d5ea00b4be6e0d0e96b5e152f2 /Lib/test
parentb5d20393b17fba8accb528ab9af0e06ef0adafc6 (diff)
downloadcpython-505043f35ee96e1733e8e055bdb53cf2c0e231c9.zip
cpython-505043f35ee96e1733e8e055bdb53cf2c0e231c9.tar.gz
cpython-505043f35ee96e1733e8e055bdb53cf2c0e231c9.tar.bz2
No need to define assert, it's built in.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_grammar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index b9607ac..21012d2 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)