Commit 2111e74
committed
fix(tests): drop stale __contains__ references after ABC removal
Roborev #1761: the ``required = {...}`` set in
``test_program_cache_resource_requires_core_methods`` still
contained ``"__contains__"`` after the prior commit removed it
from the ABC, which would fail the assertion immediately. Drop it
from the required set, add a positive assertion that
``__contains__`` is intentionally NOT abstract (with a comment
explaining why), and remove the now-vestigial ``__contains__``
methods from the ``_Empty`` and ``_Tracked`` test subclasses.1 parent 9b8d2cf commit 2111e74
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
0 commit comments