1.1 --- a/tests/global_names.py Mon Nov 28 00:59:41 2016 +0100
1.2 +++ b/tests/global_names.py Mon Nov 28 01:00:10 2016 +0100
1.3 @@ -3,9 +3,24 @@
1.4
1.5 def f():
1.6 x = g.x
1.7 + print x # 3
1.8 y = g
1.9 + print y # __main__.C
1.10 return y.x
1.11
1.12 +def i():
1.13 + x = h.x
1.14 + y = h
1.15 + return y
1.16 +
1.17 g = C
1.18 result = f()
1.19 -print result # 3
1.20 +print result # 3
1.21 +
1.22 +h = C
1.23 +print i() # __main__.C
1.24 +print i().x # 3
1.25 +
1.26 +h = C()
1.27 +print i() # <__main__.C instance>
1.28 +print i().x # 3