test + lib: Fix miscellanous bugs and inconsistencies #46

Merged
Jan Lindemann merged 8 commits from jan/feature/20260704-test-fix-test-py-duplicate-module-name-error into master 2026-07-04 07:46:09 +02:00 AGit
Showing only changes of commit 7d8994bcfe - Show all commits

lib.CopyContext._run(): Fix infinite recursion

The CopyContext._run() calls await self._run(), which would create infinite recursion raising RecursionError at runtime. Make it a pure virtual.

Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL with pi.dev v0.80.2
Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann 2026-07-01 16:03:02 +02:00
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -66,7 +66,7 @@ class CopyContext:
return self.__dst
async def _run(self) -> None:
await self._run()
raise NotImplementedError('CopyContext._run() must be overridden')
async def run(self) -> None:
await self._run()