https://github.com/python/cpython/commit/c32e264227b1fee3a6436c18b19dad88317e5aa3 commit: c32e264227b1fee3a6436c18b19dad88317e5aa3 branch: main author: Locked-chess-official <[email protected]> committer: FFY00 <[email protected]> date: 2026-04-01T22:54:06Z summary:
gh-146656: properly raise `NotImplementedError` instead of `NotImplemented` in `test_discover` (#146661) Co-authored-by: AN Long <[email protected]> Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Filipe LaĆns <[email protected]> files: M Lib/test/test_importlib/test_discover.py diff --git a/Lib/test/test_importlib/test_discover.py b/Lib/test/test_importlib/test_discover.py index 8c5fa65a564c6d..c4ab7b6982e3ba 100644 --- a/Lib/test/test_importlib/test_discover.py +++ b/Lib/test/test_importlib/test_discover.py @@ -11,7 +11,7 @@ def __init__(self, discover=[]): self._discovered_values = discover def find_spec(self, fullname, path=None, target=None): - raise NotImplemented + raise NotImplementedError def discover(self, parent=None): yield from self._discovered_values _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
