Skip to content

Commit 880286d

Browse files
committed
Demonstrate that -S works around it
This adds a second test case that passes `-S`, avoiding the warnings. (See gitpython-developers/GitPython#2052.)
1 parent f3adc73 commit 880286d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test_indirect.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ def test_subprocess():
1212
text=True,
1313
)
1414
assert proc.stderr == f"{sys.executable=}\n"
15+
16+
17+
def test_subprocess_nosite():
18+
proc = subprocess.run(
19+
[sys.executable, "-S", "reveal_interpreter.py"],
20+
check=True,
21+
capture_output=True,
22+
text=True,
23+
)
24+
assert proc.stderr == f"{sys.executable=}\n"

0 commit comments

Comments
 (0)