Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f191f commit 0163b0dCopy full SHA for 0163b0d
pythonnet/src/tests/test_module.py
@@ -347,8 +347,9 @@ def test_ClrAddReference(self):
347
from clr import AddReference
348
from System.IO import FileNotFoundException
349
for name in ("System", "Python.Runtime"):
350
- mod = AddReference(name)
351
- self.assertEqual(mod.__name__, name)
+ assy = AddReference(name)
+ assyName = assy.GetName().Name
352
+ self.assertEqual(assyName, name)
353
354
self.assertRaises(FileNotFoundException,
355
AddReference, "somethingtotallysilly")
0 commit comments