Skip to content
Merged
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
3 changes: 3 additions & 0 deletions newsfragments/+0ff2173d.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
In Python 3.13, usage of a positional argument for `maxsplit` has been
formally deprecated.
Update code to use keyword argument `maxsplit` instead of positional.
2 changes: 1 addition & 1 deletion pytest_postgresql/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def build_loader(load: Union[Callable, str, Path]) -> Callable:
if isinstance(load, Path):
return partial(sql, load)
elif isinstance(load, str):
loader_parts = re.split("[.:]", load, 2)
loader_parts = re.split("[.:]", load, maxsplit=2)
import_path = ".".join(loader_parts[:-1])
loader_name = loader_parts[-1]
_temp_import = __import__(import_path, globals(), locals(), fromlist=[loader_name])
Expand Down
Loading