From: Stefan Behnel Date: Fri, 5 Sep 2008 10:08:39 +0000 (+0200) Subject: unused test case for #5 X-Git-Tag: 0.9.9.2.beta~95^2~9^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1daed6c3fbb7f9dce713f27c63e47743d3885b29;p=cython.git unused test case for #5 --- diff --git a/tests/unimplemented/methodmangling.pyx b/tests/unimplemented/methodmangling.pyx new file mode 100644 index 00000000..876633a3 --- /dev/null +++ b/tests/unimplemented/methodmangling.pyx @@ -0,0 +1,19 @@ +__doc__ = u""" +>>> class PyTest(object): +... def __private(self): pass + +>>> py = PyTest() +>>> '_PyTest__private' in dir(py) +True +>>> '__private' in dir(py) +False + +>>> cy = CyTest() +>>> '_PyTest__private' in dir(cy) +True +>>> '__private' in dir(cy) +False +""" + +class CyTest(object): + def __private(self): pass