Two instances were forgottern in the last cleanup, removing them.
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
tests/python_test.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/python_test.py b/tests/python_test.py
index 2dd4e17..be1e3ab 100644
--- a/tests/python_test.py
+++ b/tests/python_test.py
@@ -26,17 +26,17 @@ def test_write_lockspace(tmpdir, sanlock_daemon):
assert ls == {"iotimeout": 1, "lockspace": "name"}
acquired = sanlock.inq_lockspace("name", 1, path, wait=False)
assert acquired is False
- with io.open(str(path), "rb") as f:
+ with io.open(path, "rb") as f:
magic, = struct.unpack("< I", f.read(4))
assert magic == constants.DELTA_DISK_MAGIC
# TODO: check more stuff here...
- util.check_guard(str(path), size)
+ util.check_guard(path, size)
def test_write_resource(tmpdir, sanlock_daemon):
path = str(tmpdir.join("resources"))
size = 1024**2
--
2.17.2