File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 22
22
import clr
23
23
24
24
test_modules = (
25
+ 'test_module' , # Passes on its own, but not here if
26
+ # other test modules that import System.Windows.Forms
27
+ # run first. They must not do module level import/AddReference()
28
+ # of the System.Windows.Forms namespace.
29
+ 'test_event' ,
30
+ 'test_constructors' ,
31
+ 'test_enum' ,
32
+ 'test_method' ,
33
+
25
34
'test_exceptions' ,
26
- 'test_module' ,
27
35
'test_compat' ,
28
36
'test_generic' ,
29
37
'test_conversion' ,
30
38
'test_class' ,
31
39
'test_interface' ,
32
- 'test_enum' ,
33
40
'test_field' ,
34
41
'test_property' ,
35
42
'test_indexer' ,
36
- 'test_event' ,
37
- 'test_method' ,
38
43
'test_delegate' ,
39
44
'test_array' ,
40
45
'test_thread'
Original file line number Diff line number Diff line change @@ -262,5 +262,11 @@ def main():
262
262
unittest .TextTestRunner ().run (test_suite ())
263
263
264
264
if __name__ == '__main__' :
265
+ try :
266
+ import System
267
+ except ImportError :
268
+ print "Load clr import hook"
269
+ import clr
270
+
265
271
main ()
266
272
You can’t perform that action at this time.
0 commit comments