2013-07-31 18:14:08 -03:00
|
|
|
"""
|
|
|
|
Fodder for module finalization tests in test_module.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import shutil
|
2023-11-09 10:42:34 -04:00
|
|
|
import test.test_module.final_a
|
2013-07-31 18:14:08 -03:00
|
|
|
|
|
|
|
x = 'b'
|
|
|
|
|
|
|
|
class C:
|
|
|
|
def __del__(self):
|
|
|
|
# Inspect module globals and builtins
|
|
|
|
print("x =", x)
|
2023-11-09 10:42:34 -04:00
|
|
|
print("final_a.x =", test.test_module.final_a.x)
|
2013-07-31 18:14:08 -03:00
|
|
|
print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
|
|
|
|
print("len =", getattr(len, '__name__', None))
|
|
|
|
|
|
|
|
c = C()
|
|
|
|
_underscored = C()
|