File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 9
9
"""
10
10
import os
11
11
import platform
12
+ import sys
12
13
13
14
from test_framework .test_framework import BitcoinTestFramework
14
15
from test_framework .util import (
20
21
class RPCSignerTest (BitcoinTestFramework ):
21
22
def mock_signer_path (self ):
22
23
path = os .path .join (os .path .dirname (os .path .realpath (__file__ )), 'mocks' , 'signer.py' )
23
- if platform .system () == "Windows" :
24
- return "py -3 " + path
25
- else :
26
- return path
24
+ return sys .executable + " " + path
27
25
28
26
def set_test_params (self ):
29
27
self .num_nodes = 4
Original file line number Diff line number Diff line change 8
8
See also rpc_signer.py for tests without wallet context.
9
9
"""
10
10
import os
11
- import platform
11
+ import sys
12
12
13
13
from test_framework .test_framework import BitcoinTestFramework
14
14
from test_framework .util import (
@@ -24,24 +24,15 @@ def add_options(self, parser):
24
24
25
25
def mock_signer_path (self ):
26
26
path = os .path .join (os .path .dirname (os .path .realpath (__file__ )), 'mocks' , 'signer.py' )
27
- if platform .system () == "Windows" :
28
- return "py -3 " + path
29
- else :
30
- return path
27
+ return sys .executable + " " + path
31
28
32
29
def mock_invalid_signer_path (self ):
33
30
path = os .path .join (os .path .dirname (os .path .realpath (__file__ )), 'mocks' , 'invalid_signer.py' )
34
- if platform .system () == "Windows" :
35
- return "py -3 " + path
36
- else :
37
- return path
31
+ return sys .executable + " " + path
38
32
39
33
def mock_multi_signers_path (self ):
40
34
path = os .path .join (os .path .dirname (os .path .realpath (__file__ )), 'mocks' , 'multi_signers.py' )
41
- if platform .system () == "Windows" :
42
- return "py -3 " + path
43
- else :
44
- return path
35
+ return sys .executable + " " + path
45
36
46
37
def set_test_params (self ):
47
38
self .num_nodes = 2
You can’t perform that action at this time.
0 commit comments