summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLembrun <amadeusk7@free.fr>2021-02-28 22:58:53 +0100
committerLembrun <amadeusk7@free.fr>2021-02-28 22:58:53 +0100
commitd20ae12b2f5c2aa37a11654404b3ac509bde4e45 (patch)
treec8604383a7f19f68bcd7e59504cc47292ec88413 /tests
parent07303a2a03a2f0ab44a1c451d7b7ce1208e2abaf (diff)
downloadqutebrowser-d20ae12b2f5c2aa37a11654404b3ac509bde4e45.tar.gz
qutebrowser-d20ae12b2f5c2aa37a11654404b3ac509bde4e45.zip
Replace os* methods by pathlib equivalent #2
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/misc/test_ipc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/misc/test_ipc.py b/tests/unit/misc/test_ipc.py
index 9d16368aa..42669a665 100644
--- a/tests/unit/misc/test_ipc.py
+++ b/tests/unit/misc/test_ipc.py
@@ -306,10 +306,9 @@ class TestListen:
@pytest.mark.posix
def test_permissions_posix(self, ipc_server):
ipc_server.listen()
- sockfile = ipc_server._server.fullServerName()
- sockdir = pathlib.Path(sockfile).parent
+ sockfile_path = pathlib.Path(ipc_server._server.fullServerName())
+ sockdir = sockfile_path.parent
- sockfile_path = pathlib.Path(sockfile)
file_stat = sockfile_path.stat()
dir_stat = sockdir.stat()