Python code coverage for Lib/test/final_a.py
# | count | content |
---|---|---|
1 | n/a | """ |
2 | n/a | Fodder for module finalization tests in test_module. |
3 | n/a | """ |
4 | n/a | |
5 | n/a | import shutil |
6 | n/a | import test.final_b |
7 | n/a | |
8 | n/a | x = 'a' |
9 | n/a | |
10 | n/a | class C: |
11 | n/a | def __del__(self): |
12 | n/a | # Inspect module globals and builtins |
13 | n/a | print("x =", x) |
14 | n/a | print("final_b.x =", test.final_b.x) |
15 | n/a | print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None)) |
16 | n/a | print("len =", getattr(len, '__name__', None)) |
17 | n/a | |
18 | n/a | c = C() |
19 | n/a | _underscored = C() |