1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/changed2/modifier.py Tue Jul 03 22:43:21 2012 +0200
1.3 @@ -0,0 +1,17 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +import changed2 # access the package root
1.7 +
1.8 +def change():
1.9 +
1.10 + "Change x in the partially imported module."
1.11 +
1.12 + changed2.x = 456
1.13 +
1.14 +change()
1.15 +
1.16 +# Attempt to confuse the identity of changed2 for the function.
1.17 +
1.18 +changed2 = None
1.19 +
1.20 +# vim: tabstop=4 expandtab shiftwidth=4