Skip to content

Commit

Permalink
GH-36863: [C#][Packaging] Do not shutdown PythonEngine on CDataInterf…
Browse files Browse the repository at this point in the history
…acePythonTests if .NET is > 5.0 (#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: #36863

Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
  • Loading branch information
raulcd committed Jul 25, 2023
1 parent 6375be6 commit f36cf10
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 f36cf10

Please sign in to comment.