Skip to content

Commit 288732e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 45d3553 commit 288732e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/platformdirs/unix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def user_runtime_dir(self) -> str:
161161
if sys.platform.startswith(("freebsd", "openbsd", "netbsd")):
162162
path = f"/var/run/user/{getuid()}"
163163
if not Path(path).exists():
164-
path = f"/tmp/runtime-{getuid()}" # noqa: S108
164+
path = f"/tmp/runtime-{getuid()}" # noqa: S108
165165
else:
166166
path = f"/run/user/{getuid()}"
167167
return self._append_app_name_and_version(path)

tests/test_unix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_platform_on_bsd(monkeypatch: pytest.MonkeyPatch, mocker: MockerFixture)
152152
assert Unix().user_runtime_dir == "/var/run/user/1234"
153153

154154
mocker.patch("pathlib.Path.exists", return_value=False)
155-
assert Unix().user_runtime_dir == "/tmp/runtime-1234" # noqa: S108
155+
assert Unix().user_runtime_dir == "/tmp/runtime-1234" # noqa: S108
156156

157157

158158
def test_platform_on_win32(monkeypatch: pytest.MonkeyPatch, mocker: MockerFixture) -> None:

0 commit comments

Comments
 (0)