CurtHagenlocher commented on PR #283:
URL: https://github.com/apache/arrow-dotnet/pull/283#issuecomment-4196187863

   > Thanks! It looks like pythonnet doesn't like being reinitialized in the 
same process after it's already been disposed. As we now have two test classes 
trying to use it, we'll need to share the initialization of the test fixture. 
If AI is to be believed, this can be done by defining a test collection and 
moving the ownership of the fixture to the collection -- then applying that 
collection to each of the test classes using it.
   > 
   > I can do that as a separate change if you like.
   
   This change is now implemented in the currently-checked-in version. To use 
it, remove the fixture from `CDataSchemaPythonTest` and instead add the 
attribute `[Collection("PythonNet")]` and a constructor
   ```
           public CDataSchemaPythonTest(PythonNetFixture pythonNet)
           {
               pythonNet.EnsureInitialized();
           }
   ```
   This will allow the shared fixture to be used.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to