mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Mass check-in after untabifying all files that need it.
This commit is contained in:
parent
cd0f59ea08
commit
41360a4696
36 changed files with 919 additions and 919 deletions
|
@ -6,11 +6,11 @@ def test(name, input, output, *args):
|
|||
f = getattr(operator, name)
|
||||
params = (input,) + args
|
||||
try:
|
||||
val = apply(f, params)
|
||||
val = apply(f, params)
|
||||
except:
|
||||
val = sys.exc_type
|
||||
val = sys.exc_type
|
||||
if val <> output:
|
||||
print '%s%s = %s: %s expected' % (f.__name__, params, `val`, `output`)
|
||||
print '%s%s = %s: %s expected' % (f.__name__, params, `val`, `output`)
|
||||
|
||||
test('abs', -1, 1)
|
||||
test('add', 3, 7, 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue