Skip to content
Open
Show file tree
Hide file tree
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 src/lazy_loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def myfunc():
except ModuleNotFoundError as e:
raise ValueError(
f"Found module '{fullname}' but cannot test "
"requirement '{require}'. "
f"requirement '{require}'. "
"Requirements must match distribution name, not module name."
) from e

Expand Down
2 changes: 1 addition & 1 deletion tests/test_lazy_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_require_kwarg():

# When a module can be loaded but the version can't be checked,
# raise a ValueError
with pytest.raises(ValueError):
with pytest.raises(ValueError, match="requirement 'somepkg >= 1.0'"):
lazy.load("math", require="somepkg >= 1.0")


Expand Down
Loading