Skip to content

Commit d75d60e

Browse files
committed
temporary debugging measure to understand the Address sanitizer environment failure
1 parent 3285053 commit d75d60e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/_pyrepl/simple_interact.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ def check() -> str:
5050
try:
5151
_get_reader()
5252
except _error as e:
53-
return str(e) or repr(e) or "unknown error"
53+
import os # temporary debugging measure to understand the Address sanitizer environment failure
54+
term = ""
55+
if term := os.environ.get("TERM"):
56+
term = f"TERM={term}"
57+
return (str(e) or repr(e) or "unknown error") + "; {term}" if term else ""
5458
return ""
5559

5660

0 commit comments

Comments
 (0)