2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-29 19:52:16 +00:00

added new feature: def_raw()

[SVN r8162]
This commit is contained in:
Ullrich Köthe
2000-11-10 11:44:42 +00:00
parent f6e12ce904
commit 03dbf0387a
8 changed files with 130 additions and 16 deletions

View File

@@ -842,6 +842,24 @@ test inheritB2
>>> db2.inheritB2()
'B2::inheritB2'
========= test the new def_raw() feature ==========
>>> r = RawTest(1)
>>> raw(r,1,third=1,fourth=1)
4
>>> r.raw(1,third=1,fourth=1)
4
>>> raw(r,1,third=1,f=1)
Traceback (innermost last):
KeyError: fourth
>>> raw(r,1,third=1)
Traceback (innermost last):
TypeError: wrong number of arguments
>>> raw(r,1)
Traceback (innermost last):
TypeError: wrong number of arguments
========= Prove that the "phantom base class" issue is resolved ==========
>>> assert pa1_a1.__class__ == A1