Skip to content

Commit

Permalink
fix tests (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElDavoo committed Aug 27, 2024
1 parent 9a8d495 commit 1909352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
from hashlib import sha512
from subprocess import Popen, STDOUT, PIPE

def Propen(command) -> tuple[str, int]:
def Propen(command):
if isinstance(command, str):
command = command.split()
# split the command string in a list
p = Popen(command, stdout=PIPE, stderr=STDOUT, text=True)
return p.communicate()[0], p.returncode

def cmp_files(file1: str, file2: str) -> bool:
def cmp_files(file1: str, file2: str):
with open(file1, 'rb') as f:
keyb_digest = sha512(f.read()).digest()
with open(file2, 'rb') as f:
Expand Down

1 comment on commit 1909352

@ElDavoo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow an all-numbers short commit hash

Please sign in to comment.