@@ -12,90 +12,73 @@ def _run_test(testname):
12
12
if platform .system () != 'Windows' :
13
13
args = ['mono' ] + args
14
14
15
- proc = subprocess .Popen (args )
15
+ from pythonnet .util import find_libpython
16
+ libpython = find_libpython ()
17
+
18
+ proc = subprocess .Popen (args , env = {"PYTHONNET_PYDLL" : libpython })
16
19
proc .wait ()
17
20
18
21
assert proc .returncode == 0
19
22
20
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
21
23
def test_rename_class ():
22
24
_run_test ('class_rename' )
23
25
24
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
25
26
def test_rename_class_member_static_function ():
26
27
_run_test ('static_member_rename' )
27
28
28
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
29
29
def test_rename_class_member_function ():
30
30
_run_test ('member_rename' )
31
31
32
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
33
32
def test_rename_class_member_field ():
34
33
_run_test ('field_rename' )
35
34
36
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
37
35
def test_rename_class_member_property ():
38
36
_run_test ('property_rename' )
39
37
40
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
41
38
def test_rename_namespace ():
42
39
_run_test ('namespace_rename' )
43
40
44
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
45
41
def test_field_visibility_change ():
46
42
_run_test ("field_visibility_change" )
47
43
48
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
49
44
def test_method_visibility_change ():
50
45
_run_test ("method_visibility_change" )
51
46
52
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
53
47
def test_property_visibility_change ():
54
48
_run_test ("property_visibility_change" )
55
49
56
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
57
50
def test_class_visibility_change ():
58
51
_run_test ("class_visibility_change" )
59
52
60
53
@pytest .mark .skip (reason = 'FIXME: Domain reload fails when Python points to a .NET object which points back to Python objects' )
61
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
62
54
def test_method_parameters_change ():
63
55
_run_test ("method_parameters_change" )
64
56
65
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
66
57
def test_method_return_type_change ():
67
58
_run_test ("method_return_type_change" )
68
59
69
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
70
60
def test_field_type_change ():
71
61
_run_test ("field_type_change" )
72
62
73
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
74
63
@pytest .mark .xfail (reason = "Events not yet serializable" )
75
64
def test_rename_event ():
76
65
_run_test ('event_rename' )
77
66
78
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
79
67
@pytest .mark .xfail (reason = "newly instanced object uses PyType_GenericAlloc" )
80
68
def test_construct_removed_class ():
81
69
_run_test ("construct_removed_class" )
82
70
83
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
84
71
def test_out_to_ref_param ():
85
72
_run_test ("out_to_ref_param" )
86
73
87
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
88
74
def test_ref_to_out_param ():
89
75
_run_test ("ref_to_out_param" )
90
76
91
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
92
77
def test_ref_to_in_param ():
93
78
_run_test ("ref_to_in_param" )
94
79
95
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
96
80
def test_in_to_ref_param ():
97
81
_run_test ("in_to_ref_param" )
98
82
99
- @pytest .mark .skipif (platform .system () == 'Darwin' , reason = 'FIXME: macos can\' t find the python library' )
100
83
def test_nested_type ():
101
84
_run_test ("nested_type" )
0 commit comments