@@ -786,15 +786,15 @@ def test_a_delegating_override_is_a_classmethod(self) -> 'None':
786786 # so it is a live failure mode rather than a hypothetical one. The KeyError
787787 # fails the test either way, so nothing regressed silently; what it does not do
788788 # is say *which* class stopped defining `get`, or that the page is then wrong to
789- # list it. The sibling at `test_the_two_redundant_overrides_are_gone ` already
789+ # list it. The sibling at `test_the_mh_helpers_define_no_get_override ` already
790790 # does this the right way round, with `assertNotIn('get', vars(klass))`.
791791 # Deliberately *not* under `subTest`: a subTest records its failure and lets
792792 # the method run on, so the bare `KeyError` this guard exists to pre-empt
793793 # would still be raised by the indexing below and reported alongside it. A
794794 # plain assertion aborts here, which is the whole point.
795795 for klass in (Method , Command , OptionType ):
796796 self .assertIn ('get' , vars (klass ),
797- f'{ klass .__name__ } no longer defines a get of its own, so '
797+ f'{ klass .__name__ } defines no get of its own, so '
798798 'the page is wrong to name it among the overrides -- an '
799799 'override folded into the inherited base is what #940 did '
800800 'to the mh/ngap helpers' )
@@ -809,8 +809,8 @@ def test_a_delegating_override_is_a_classmethod(self) -> 'None':
809809 'followed it' )
810810 self .assertIn ('return super().get(key)' ,
811811 inspect .getsource (vars (klass )['get' ].__func__ ),
812- f'{ klass .__name__ } .get no longer delegates, so the page is '
813- 'wrong to give it as a delegating override' )
812+ f'{ klass .__name__ } .get does not delegate to super().get(key), '
813+ 'so the page is wrong to give it as a delegating override' )
814814 self .assertIsInstance (vars (OptionType )['get' ], staticmethod )
815815 self .assertNotIn ('super()' , inspect .getsource (vars (OptionType )['get' ].__func__ ),
816816 'OptionType.get delegates to super(), so the page is wrong to list it '
@@ -948,7 +948,7 @@ def _restore() -> 'None':
948948 'the page no longer states the ruling as its headline, so a '
949949 'later mention of quiet=True is doing the work of pinning it' )
950950
951- def test_the_two_redundant_overrides_are_gone (self ) -> 'None' :
951+ def test_the_mh_helpers_define_no_get_override (self ) -> 'None' :
952952 """#940: the owner ruled for deleting the redundant overrides, not widening them.
953953
954954 Several things at once, because the ruling is only settled if they all hold:
@@ -1200,14 +1200,14 @@ def test_the_extras_reader_agrees_with_tomllib(self) -> 'None':
12001200 'requirement string and a comment containing "]" are the two '
12011201 'shapes that broke it before' )
12021202
1203- def test_the_all_extra_is_exactly_the_three_core_addon_extras (self ) -> 'None' :
1203+ def test_the_all_extra_is_exactly_the_core_addon_extras (self ) -> 'None' :
12041204 """``all`` carries core addons only, and the page's listing says what it is.
12051205
12061206 Two halves, because either can rot without the other. The tree half asks
1207- :file:`pyproject.toml` whether ``all`` is still the union of ``cli``,
1207+ :file:`pyproject.toml` whether ``all`` is the union of ``cli``,
12081208 ``crypto`` and ``NGAP`` and nothing else -- the shape GitHub issue #910's
12091209 ruling produced, narrowed to the core addons. The page half asks whether
1210- the ``toml`` block on the page still shows that same list, since a page that
1210+ the ``toml`` block on the page shows that same list, since a page that
12111211 prints a stale ``all =`` line is worse than one that prints none.
12121212
12131213 """
@@ -1216,14 +1216,14 @@ def test_the_all_extra_is_exactly_the_three_core_addon_extras(self) -> 'None':
12161216 core = [requirement for extra in ('cli' , 'crypto' , 'NGAP' )
12171217 for requirement in extras [extra ]]
12181218 self .assertEqual (sorted (extras ['all' ]), sorted (core ),
1219- f"all is { extras ['all' ]!r} , which is no longer the union of "
1219+ f"all is { extras ['all' ]!r} , which is not the union of "
12201220 f'cli/crypto/NGAP { core !r} -- #910 narrowed it to the core '
12211221 'addons, so a change here is a change to that ruling' )
12221222
12231223 # The page prints the literal list, so the literal list is what is checked.
12241224 listing = 'all = [ ' + ', ' .join (f'"{ req } "' for req in extras ['all' ]) + ' ]'
12251225 self .assertIn (listing , _page (self .ANCHOR ),
1226- f'process.rst no longer shows { listing !r} ; its toml block has '
1226+ f'process.rst does not show { listing !r} ; its toml block has '
12271227 "drifted from pyproject.toml's own all extra" )
12281228
12291229 def test_the_page_keeps_the_engine_and_installability_exclusions_apart (self ) -> 'None' :
0 commit comments