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

Skip to content

Commit 263e249

Browse files
committed
Update tests for module.__file__ and __doc__ as they now both return
something sensible.
1 parent 30cc22a commit 263e249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/test_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def testModuleInterface(self):
6262
import System
6363
self.assertEquals(type(System.__dict__), type({}))
6464
self.assertEquals(System.__name__, 'System')
65-
self.assertEquals(System.__file__, None)
66-
self.assertEquals(System.__doc__, None)
65+
self.assertTrue(System.__file__.endswith("System.dll"))
66+
self.assertTrue(System.__doc__.startswith("Namespace containing types from the following assemblies:"))
6767
self.assertTrue(self.isCLRClass(System.String))
6868
self.assertTrue(self.isCLRClass(System.Int32))
6969

0 commit comments

Comments
 (0)