This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
commit f3382c495680ab1b27c5f7efbef2d6576d4d0ac3
Author: Nir Soffer <nirsof(a)gmail.com>
AuthorDate: Fri Apr 19 18:24:37 2019 +0300
tests: Remove unneeded str() conversion
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
@@ -28,13 +28,13 @@ def test_write_lockspace(tmpdir, sanlock_daemon):
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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by thread