Skip to content

Commit d02b85c

Browse files
committed
fix linting
1 parent c2191a3 commit d02b85c

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/conftest.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import bytecode
2-
3-
41
def pytest_report_header():
52
import importlib.util
63

74
spec = importlib.util.find_spec("bytecode.concrete")
8-
kind = "pure-Python" if (spec and spec.origin and spec.origin.endswith(".py")) else "Cython"
9-
return f"bytecode: {kind} build ({bytecode.__file__})"
5+
is_pure = spec and spec.origin and spec.origin.endswith(".py")
6+
kind = "pure-Python" if is_pure else "Cython"
7+
return f"bytecode: {kind} build"

0 commit comments

Comments
 (0)