Skip to content

Commit

Permalink
Fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 11, 2024
1 parent 5fda8b3 commit 98d8fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/r2pipe/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def __init__(self):
self._r_core_free = register("r_core_free", "c_void_p", "c_void_p")
def __del__(self):
self._r_core_free[1](self._o)
def free(self):
self._r_core_free[1](self._o)
def cmd_str(self, cmd):
return self._r_core_cmd_str[1](self._o, cmd)

Expand Down
2 changes: 1 addition & 1 deletion python/test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ def test_r2cmd_no_nullbyte_bug(self):
import r2pipe
r = r2pipe.open('/bin/ls')

result = r.cmd('prx @ rsp')
result = r.cmd('prx @r:SP')
self.assertNotEqual(result, '')

0 comments on commit 98d8fe8

Please sign in to comment.