File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public class TestPythonEngineProperties
9
9
[ Test ]
10
10
public static void GetBuildinfoDoesntCrash ( )
11
11
{
12
+ PythonEngine . Initialize ( ) ;
12
13
using ( Py . GIL ( ) )
13
14
{
14
15
string s = PythonEngine . BuildInfo ;
@@ -21,6 +22,7 @@ public static void GetBuildinfoDoesntCrash()
21
22
[ Test ]
22
23
public static void GetCompilerDoesntCrash ( )
23
24
{
25
+ PythonEngine . Initialize ( ) ;
24
26
using ( Py . GIL ( ) )
25
27
{
26
28
string s = PythonEngine . Compiler ;
@@ -34,6 +36,7 @@ public static void GetCompilerDoesntCrash()
34
36
[ Test ]
35
37
public static void GetCopyrightDoesntCrash ( )
36
38
{
39
+ PythonEngine . Initialize ( ) ;
37
40
using ( Py . GIL ( ) )
38
41
{
39
42
string s = PythonEngine . Copyright ;
@@ -46,6 +49,7 @@ public static void GetCopyrightDoesntCrash()
46
49
[ Test ]
47
50
public static void GetPlatformDoesntCrash ( )
48
51
{
52
+ PythonEngine . Initialize ( ) ;
49
53
using ( Py . GIL ( ) )
50
54
{
51
55
string s = PythonEngine . Platform ;
@@ -58,6 +62,7 @@ public static void GetPlatformDoesntCrash()
58
62
[ Test ]
59
63
public static void GetVersionDoesntCrash ( )
60
64
{
65
+ PythonEngine . Initialize ( ) ;
61
66
using ( Py . GIL ( ) )
62
67
{
63
68
string s = PythonEngine . Version ;
You can’t perform that action at this time.
0 commit comments