From: Finn B. <bc...@us...> - 2001-12-06 13:10:11
|
Update of /cvsroot/jython/bugtests In directory usw-pr-cvs1:/tmp/cvs-serv19679 Added Files: test345.py test345c.py Log Message: Test for "[ #489836 ] Private names is not mangled". --- NEW FILE: test345.py --- """ [ #489836 ] Private names is not mangled """ import support support.compileJPythonc("test345c.py", jar="test345.jar", core=1, output="test345.out") support.runJava("-jar test345.jar") --- NEW FILE: test345c.py --- """ """ import support class A: def __init__(self): self.__stop("A") self.__x = 1 self.__y = 1 del self.__x def __stop(self, s): pass __c = 1 if dir(A) != ['_A__c', '_A__stop', '__doc__', '__init__', '__module__']: raise support.TestError("bug in private class var mangling %s" % dir(A)) if dir(A()) != ['_A__y']: raise support.TestError("bug in private var mangling %s" % dir(A())) |