From 1daed6c3fbb7f9dce713f27c63e47743d3885b29 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 5 Sep 2008 12:08:39 +0200 Subject: [PATCH] unused test case for #5 --- tests/unimplemented/methodmangling.pyx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/unimplemented/methodmangling.pyx 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 -- 2.26.2