Skip to content

Commit cc03ed6

Browse files
committed
tests: simplify imports
'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.
1 parent ba9d9f8 commit cc03ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

systemd/test/test_journal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import time
88
import uuid
99
import sys
10-
import traceback as _traceback
10+
import traceback
1111

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

3333
if CODE_LINE is CODE_FILE is CODE_FUNC is None:
34-
CODE_FILE, CODE_LINE, CODE_FUNC = _traceback.extract_stack(limit=2)[0][:3]
34+
CODE_FILE, CODE_LINE, CODE_FUNC = traceback.extract_stack(limit=2)[0][:3]
3535
if CODE_FILE is not None:
3636
args.append('CODE_FILE=' + CODE_FILE)
3737
if CODE_LINE is not None:

0 commit comments

Comments
 (0)