Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Nov 11, 2021
1 parent 565d5d7 commit 6037334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_log_journald.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import logging
import os
import platform
import socket
import struct
from collections import deque
from io import BytesIO
from pathlib import Path
from socket import AF_UNIX, SOCK_DGRAM
from tempfile import TemporaryDirectory

import pytest
Expand Down Expand Up @@ -82,7 +82,7 @@ def log_writer():
except ZeroDivisionError:
log.exception("Sample exception")

with bind_socket(AF_UNIX, SOCK_DGRAM, address=str(sock_path)) as sock:
with bind_socket(socket.AF_UNIX, socket.SOCK_DGRAM, address=str(sock_path)) as sock:
JournaldLogHandler.SOCKET_PATH = sock_path

with aiomisc.entrypoint(FakeJournald(sock=sock), loop=loop):
Expand Down

0 comments on commit 6037334

Please sign in to comment.