Skip to content

Commit

Permalink
Fix clw unittests for Windows 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jan 22, 2024
1 parent e61f66b commit 20f2bbb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,12 @@ def test_tools_transaction_options(self):

cmd_wlt_update2 = "%s %s -w test_tools_transaction_options -d %s -ix" % \
(self.python_executable, self.clw_executable, self.DATABASE_URI)
output = Popen(cmd_wlt_update2, stdin=PIPE, stdout=PIPE, shell=True).communicate()[0]
output_list = [i for i in output.split(b'Keys\n')[1].split(b' ') if i != b'']
output = normalize_string(Popen(cmd_wlt_update2, stdin=PIPE, stdout=PIPE, shell=True).communicate()[0])
output_list = [i for i in output.split('Keys')[1].split(' ') if i != '']
if output_list[0] == '\n':
output_list = output_list[1:]
first_key_id = int(output_list[0])
address = normalize_string(output_list[2])
address = output_list[2]
cmd_wlt_send2 = ("%s %s -w test_tools_transaction_options -d %s "
"-s blt1qdjre3yw9hnt53entkp6tflhg34y4sp999emjnk 0.5 -k %d") % \
(self.python_executable, self.clw_executable, self.DATABASE_URI, first_key_id)
Expand Down

0 comments on commit 20f2bbb

Please sign in to comment.