Skip to content

Commit

Permalink
apacheGH-36863: [C#][Packaging] Do not shutdown PythonEngine on CData…
Browse files Browse the repository at this point in the history
…InterfacePythonTests if .NET is > 5.0 (apache#36868)

### Rationale for this change

Tests are failing on maintenance branch to generate Nuget packages. This has been tested on the maintenance branch and it solves the issue.

### What changes are included in this PR?

Only Shutdown if `#if !NET5_0_OR_GREATER`

### Are these changes tested?

Locally and via archery.

### Are there any user-facing changes?

No
* Closes: apache#36863

Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
  • Loading branch information
raulcd authored Jul 25, 2023
1 parent ec2bc34 commit d9b9003
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csharp/test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public PythonNet()

public void Dispose()
{
#if !NET5_0_OR_GREATER
PythonEngine.Shutdown();
#endif
}
}

Expand Down

0 comments on commit d9b9003

Please sign in to comment.