Skip to content

Commit c32e264

Browse files
Locked-chess-officialaiskvstinnerFFY00
authored
gh-146656: properly raise NotImplementedError instead of NotImplemented in test_discover (#146661)
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>
1 parent b456cb2 commit c32e264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_importlib/test_discover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, discover=[]):
1111
self._discovered_values = discover
1212

1313
def find_spec(self, fullname, path=None, target=None):
14-
raise NotImplemented
14+
raise NotImplementedError
1515

1616
def discover(self, parent=None):
1717
yield from self._discovered_values

0 commit comments

Comments
 (0)