diff --git a/tests/functional/pyocf/ocf.py b/tests/functional/pyocf/ocf.py index 5108604..b24d826 100644 --- a/tests/functional/pyocf/ocf.py +++ b/tests/functional/pyocf/ocf.py @@ -6,8 +6,6 @@ from ctypes import c_void_p, cdll import inspect import os -lib = None - class OcfLib: __lib__ = None diff --git a/tests/functional/pyocf/utils.py b/tests/functional/pyocf/utils.py index a308ca2..567f326 100644 --- a/tests/functional/pyocf/utils.py +++ b/tests/functional/pyocf/utils.py @@ -16,7 +16,7 @@ def print_buffer(buf, length, offset=0, width=16, ignore=0, stop_after_count_ignored = int(stop_after_count_ignored / width) for addr in range(offset, end, width): - cur_line = buf[addr: min(end, addr + width)] + cur_line = buf[addr : min(end, addr + width)] byteline = "" asciiline = "" if not any(x != ignore for x in cur_line): @@ -114,7 +114,7 @@ class Size: @property def sectors(self): - return self.bytes // _SECTOR_SIZE + return self.bytes // self._SECTOR_SIZE def __str__(self): if self.bytes < self._KiB: