Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/test/test_importlib/test_discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Copy Markdown
Member

@aisk aisk Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to raise an exception instance instead of an exception class.

Suggested change
raise NotImplementedError
raise NotImplementedError()


def discover(self, parent=None):
yield from self._discovered_values
Expand Down
Loading