File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,11 +136,15 @@ def s_ctypes():
136136@section ("curses" )
137137def 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" )
You can’t perform that action at this time.
0 commit comments