Skip to content

Commit ae55fd8

Browse files
committed
Initial commit
This doesn't produce the problem yet when the tests are run with just `pytest`, since `pytst-cov` isn't configured to be used automatically.
0 parents  commit ae55fd8

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__pycache__/
2+
.venv/
3+
.coverage

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest
2+
pytest-cov

reveal_interpreter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
3+
import sys
4+
5+
6+
if __name__ == "__main__":
7+
print(f"{sys.executable=}", file=sys.stderr)

test_indirect.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env python
2+
3+
import subprocess
4+
import sys
5+
6+
7+
def test_reveal_interpreter():
8+
proc = subprocess.run(
9+
[sys.executable, "reveal_interpreter.py"],
10+
check=True,
11+
capture_output=True,
12+
text=True,
13+
)
14+
assert proc.stderr == f"{sys.executable=}\n"

0 commit comments

Comments
 (0)