From: Locked-chess-official <13140752715@163.com> Date: Wed, 1 Apr 2026 22:54:06 +0000 (+0800) Subject: gh-146656: properly raise `NotImplementedError` instead of `NotImplemented` in `test_... X-Git-Tag: v3.15.0a8~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c32e264227b1fee3a6436c18b19dad88317e5aa3;p=thirdparty%2FPython%2Fcpython.git gh-146656: properly raise `NotImplementedError` instead of `NotImplemented` in `test_discover` (#146661) Co-authored-by: AN Long Co-authored-by: Victor Stinner Co-authored-by: Filipe LaĆ­ns --- diff --git a/Lib/test/test_importlib/test_discover.py b/Lib/test/test_importlib/test_discover.py index 8c5fa65a564c..c4ab7b6982e3 100644 --- a/Lib/test/test_importlib/test_discover.py +++ b/Lib/test/test_importlib/test_discover.py @@ -11,7 +11,7 @@ class DiscoverableFinder: 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