2014-03-15 | Paul Boddie | raw files shortlog changelog graph | Added a test of nested namespaces involving classes. | syspython-as-target |
tests/nested_namespaces.py (file) |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/nested_namespaces.py Sat Mar 15 14:17:10 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +c = 123 1.7 + 1.8 +class A: 1.9 + def b(self): 1.10 + return c 1.11 + c = 456 1.12 + 1.13 +a = A() 1.14 +result_123 = a.b() 1.15 + 1.16 +# vim: tabstop=4 expandtab shiftwidth=4