Sha256: cec907c498e75785da11c3626390f3aaf08e175b085ba103bae1c7c82ed68286

Contents?: true

Size: 419 Bytes

Versions: 30

Compression:

Stored size: 419 Bytes

Contents

# PR#208, calling apply with bogus 3rd argument

def test(x):
    return x

assert 7 == apply(test, (7,))
assert 7 == apply(test, (), {'x': 7})

try:
    apply(test, (1,), 7)
    print 'TypeError expected'
except TypeError:
    pass

try:
    apply(test, (1,), {7:3})
    print 'TypeError expected'
except TypeError:
    pass

try:
    apply(test, (1,), None)
    print 'TypeError expected'
except TypeError:
    pass

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.12.1.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.11.1.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.9.2.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.9.1.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.9.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.8.4.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.8.0.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.8.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.3.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py
rubyfox-server-2.3.0.pre2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr208.py