FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Err, somehow the unit test fix for clr.get/setPreload got lost ... · pythonnet/pythonnet@e2aff66 · GitHub

Commit e2aff66

Browse files
committed
Err, somehow the unit test fix for clr.get/setPreload got lost ...
1 parent de6f4cc commit e2aff66

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

‎pythonnet/src/tests/test_module.py‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,22 @@ def test000importClr(self):
3535

3636
def testPreloadVar(self):
3737
import clr
38-
self.failUnless(clr.preload is False, clr.preload)
38+
self.failUnless(clr.getPreload() is False, clr.getPreload())
39+
clr.setPreload(False)
40+
self.failUnless(clr.getPreload() is False, clr.getPreload())
3941
try:
40-
clr.preload = True
41-
self.failUnless(clr.preload is True, clr.preload)
42-
clr.preload = 0
43-
self.failUnless(clr.preload is False, clr.preload)
44-
clr.preload = 1
45-
self.failUnless(clr.preload is True, clr.preload)
42+
clr.setPreload(True)
43+
self.failUnless(clr.getPreload() is True, clr.getPreload())
44+
clr.setPreload(0)
45+
self.failUnless(clr.getPreload() is False, clr.getPreload())
46+
clr.setPreload(1)
47+
self.failUnless(clr.getPreload() is True, clr.getPreload())
4648

4749
import System.Configuration
4850
content = dir(System.Configuration)
4951
self.failUnless(len(content) > 10, content)
5052
finally:
51-
clr.preload = False
53+
clr.setPreload(False)
5254

5355
def testModuleInterface(self):
5456
"""Test the interface exposed by CLR module objects."""

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL