Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0163b0d

Browse files
author
Barton Cline
committed
test_module.test_ClrAddReference() now expects an assembly instead of a module (like my branch does).
1 parent 73f191f commit 0163b0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonnet/src/tests/test_module.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,9 @@ def test_ClrAddReference(self):
347347
from clr import AddReference
348348
from System.IO import FileNotFoundException
349349
for name in ("System", "Python.Runtime"):
350-
mod = AddReference(name)
351-
self.assertEqual(mod.__name__, name)
350+
assy = AddReference(name)
351+
assyName = assy.GetName().Name
352+
self.assertEqual(assyName, name)
352353

353354
self.assertRaises(FileNotFoundException,
354355
AddReference, "somethingtotallysilly")

0 commit comments

Comments
 (0)