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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.x']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
dotnet-version: ['8.0.x']
dist: [whl, sdist]
uses: ./.github/workflows/e2e.yml
Expand Down
6 changes: 4 additions & 2 deletions src/data_factory_testing_framework/_pythonnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
def load_dotnet_assemblies() -> None:
# Load the .NET assemblies
for dll in (Path(__file__).parent / "bin").glob("**/*.dll"):
dll = os.path.abspath(dll)
# Pass the path without the ".dll" suffix so pythonnet probes and loads "<path>.dll" directly.
# With the suffix, pythonnet 3.0.x on .NET 9+ parses the path as an assembly name and fails to load it.
assembly_path = os.path.splitext(os.path.abspath(dll))[0]
try:
clr.AddReference(dll)
clr.AddReference(assembly_path)
except Exception:
pass

Expand Down
Loading