Skip to content

Commit

Permalink
tests: simplify imports
Browse files Browse the repository at this point in the history
'import foo as _foo' is useful in exported modules to avoid 'foo' being
present in the public API. No need to play that game in test code.
  • Loading branch information
keszybz committed Aug 16, 2022
1 parent ba9d9f8 commit cc03ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemd/test/test_journal.py
Expand Up @@ -7,7 +7,7 @@
import time
import uuid
import sys
import traceback as _traceback
import traceback

from systemd import journal, id128
from systemd.journal import _make_line
Expand All @@ -31,7 +31,7 @@ def send(self, MESSAGE, MESSAGE_ID=None,
args.append('MESSAGE_ID=' + id)

if CODE_LINE is CODE_FILE is CODE_FUNC is None:
CODE_FILE, CODE_LINE, CODE_FUNC = _traceback.extract_stack(limit=2)[0][:3]
CODE_FILE, CODE_LINE, CODE_FUNC = traceback.extract_stack(limit=2)[0][:3]
if CODE_FILE is not None:
args.append('CODE_FILE=' + CODE_FILE)
if CODE_LINE is not None:
Expand Down

0 comments on commit cc03ed6

Please sign in to comment.