Python code coverage for Lib/test/final_b.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_a |
7 | n/a | |
8 | n/a | x = 'b' |
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_a.x =", test.final_a.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() |