]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-146656: properly raise `NotImplementedError` instead of `NotImplemented` in `test_...
authorLocked-chess-official <13140752715@163.com>
Wed, 1 Apr 2026 22:54:06 +0000 (06:54 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 22:54:06 +0000 (22:54 +0000)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Filipe LaĆ­ns <filipe.lains@gmail.com>
Lib/test/test_importlib/test_discover.py

index 8c5fa65a564c6dee4148e08c0b444a158583d19f..c4ab7b6982e3ba99b44810843bae1ea91c35eac6 100644 (file)
@@ -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