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_b
|
2013-07-31 18:14:08 -03:00
|
|
|
|
|
|
|
x = 'a'
|
|
|
|
|
|
|
|
class C:
|
|
|
|
def __del__(self):
|
|
|
|
# Inspect module globals and builtins
|
|
|
|
print("x =", x)
|
2023-11-09 10:42:34 -04:00
|
|
|
print("final_b.x =", test.test_module.final_b.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()
|