Skip to content

Assemblymanager thread safety #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Nov 17, 2016
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Import some .NET types as well and use them
  • Loading branch information
abessen committed Oct 28, 2016
commit 59b9ea1d29eb8140add97e332ea63ba47d0f7668
7 changes: 6 additions & 1 deletion src/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,14 @@ def test_AssemblyLoadThreadSafety(self):
# spin up .NET thread which loads assemblies and triggers AppDomain.AssemblyLoad event
ModuleTest.RunThreads()
time.sleep(1e-5)
# call import clr, which in AssemblyManager.GetNames iterates through the loaded types
for i in range(1, 100):
# call import clr, which in AssemblyManager.GetNames iterates through the loaded types
import clr
# import some .NET types
from System import DateTime
from System import Guid
from System.Collections.Generic import Dictionary
dict = Dictionary[Guid,DateTime]()
ModuleTest.JoinThreads()


Expand Down