Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanExtreme002 committed Nov 19, 2023
1 parent 9187f1b commit e1cfc59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest tests -v -s
pytest tests -v -s -x
- name: Install package
run: |
pip install PyMemoryEditor
2 changes: 1 addition & 1 deletion PyMemoryEditor/linux/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def read_process_memory(
pid, (iovec * 1)(iovec(addressof(data), sizeof(data))),
1, (iovec * 1)(iovec(address, sizeof(data))), 1, 0
)
return str(data.value) if pytype is str else data.value
return data.value.decode() if pytype is str else data.value


def search_addresses_by_value(
Expand Down

0 comments on commit e1cfc59

Please sign in to comment.