| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b80bec commit a330330
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -165,7 +165,7 @@ public static void Initialize() | |||
| 165 | 165 | Runtime.PyDict_SetItemString(clr_dict, "_extras", module); | |
| 166 | 166 | foreach (PyObject key in locals.Keys()) | |
| 167 | 167 | { | |
| 168 | - if (!key.ToString().StartsWith("_")) | ||
| 168 | + if (!key.ToString().StartsWith("_") || key.ToString().Equals("__version__")) | ||
| 169 | 169 | { | |
| 170 | 170 | PyObject value = locals[key]; | |
| 171 | 171 | Runtime.PyDict_SetItem(clr_dict, key.Handle, value.Handle); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | - """ | ||
| 1 | + """ | ||
| 2 | 2 | Code in this module gets loaded into the main clr module. | |
| 3 | 3 | """ | |
| 4 | 4 | ||
| 5 | + __version__ = "2.2.0" | ||
| 6 | + | ||
| 5 | 7 | ||
| 6 | 8 | class clrproperty(object): | |
| 7 | 9 | """ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,6 +41,10 @@ def test000importClr(self): | |||
| 41 | 41 | import clr | |
| 42 | 42 | self.assertTrue(self.isCLRRootModule(clr)) | |
| 43 | 43 | ||
| 44 | + def testVersionClr(self): | ||
| 45 | + import clr | ||
| 46 | + self.assertTrue(clr.__version__ >= "2.2.0") | ||
| 47 | + | ||
| 44 | 48 | def testPreloadVar(self): | |
| 45 | 49 | import clr | |
| 46 | 50 | self.assertTrue(clr.getPreload() is False, clr.getPreload()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments