Support python(pre|ap)pend on static methods in classic mode
Adding a test that covers this case to the python_append test-suite Note: staticmethod function has been available since Python 2.2
This commit is contained in:
parent
d91064aa6a
commit
b45164e098
3 changed files with 11 additions and 3 deletions
|
|
@ -20,3 +20,10 @@ if grabpath() != os.path.dirname(mypath):
|
|||
|
||||
if grabstaticpath() != os.path.basename(mypath):
|
||||
raise RuntimeError("grabstaticpath failed")
|
||||
|
||||
clearstaticpath()
|
||||
if grabstaticpath() != None:
|
||||
raise RuntimeError("Resetting staticfuncpath failed")
|
||||
Test.static_func()
|
||||
if grabstaticpath() != os.path.basename(mypath):
|
||||
raise RuntimeError("grabstaticpath failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue