fix wallet python test when run with ctest
This commit is contained in:
parent
6b72541dc0
commit
75fe790634
|
@ -64,6 +64,7 @@ try:
|
||||||
PYTHONPATH += srcdir + '/../../utils/python-rpc'
|
PYTHONPATH += srcdir + '/../../utils/python-rpc'
|
||||||
os.environ['PYTHONPATH'] = PYTHONPATH
|
os.environ['PYTHONPATH'] = PYTHONPATH
|
||||||
os.environ['WALLET_DIRECTORY'] = WALLET_DIRECTORY
|
os.environ['WALLET_DIRECTORY'] = WALLET_DIRECTORY
|
||||||
|
os.environ['PYTHONIOENCODING'] = 'utf-8'
|
||||||
for i in range(len(command_lines)):
|
for i in range(len(command_lines)):
|
||||||
#print('Running: ' + str(command_lines[i]))
|
#print('Running: ' + str(command_lines[i]))
|
||||||
processes.append(subprocess.Popen(command_lines[i], stdout = outputs[i]))
|
processes.append(subprocess.Popen(command_lines[i], stdout = outputs[i]))
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
import errno
|
import errno
|
||||||
|
|
||||||
|
@ -319,7 +320,7 @@ class WalletTest():
|
||||||
languages = res.languages
|
languages = res.languages
|
||||||
languages_local = res.languages_local
|
languages_local = res.languages_local
|
||||||
for language in languages + languages_local:
|
for language in languages + languages_local:
|
||||||
print('Creating ' + language + ' wallet')
|
sys.stdout.write('Creating ' + language + ' wallet\n')
|
||||||
wallet.create_wallet(filename = '', language = language)
|
wallet.create_wallet(filename = '', language = language)
|
||||||
res = wallet.query_key('mnemonic')
|
res = wallet.query_key('mnemonic')
|
||||||
wallet.close_wallet()
|
wallet.close_wallet()
|
||||||
|
|
Loading…
Reference in New Issue