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:
Alec Cooper 2016-01-25 12:28:36 -05:00
commit b45164e098
3 changed files with 11 additions and 3 deletions

View file

@ -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")