Skip to content

Commit 0b983d2

Browse files
committed
fix: smoke test
1 parent 85f253c commit 0b983d2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ci/smoke_stdlib.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,15 @@ def s_ctypes():
136136
@section("curses")
137137
def s_curses():
138138
# Don't call initscr() — that needs a real tty. Just confirm the C
139-
# extension loads and exposes the expected symbols.
139+
# extension loads and exposes module-level symbols. ACS_* / COLS /
140+
# LINES and friends are populated by initscr() (they come from the
141+
# terminfo ACS map), so we stick to things that exist at import time.
140142
import curses
141143
assert hasattr(curses, "initscr")
142144
assert hasattr(curses, "color_pair")
143-
assert hasattr(curses, "ACS_HLINE")
145+
assert hasattr(curses, "error") # module-level exception class
146+
assert hasattr(curses, "KEY_UP") # module-level key constant
147+
assert hasattr(curses, "A_NORMAL") # module-level attribute constant
144148
# panel is a separate extension (_curses_panel); check both.
145149
import curses.panel
146150
assert hasattr(curses.panel, "new_panel")

0 commit comments

Comments
 (0)