Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
780199e6
Commit
780199e6
authored
Aug 13, 2011
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12669: Fix test_curses so that it can run on the buildbots.
parent
3bf71c54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_curses.py
Lib/test/test_curses.py
+3
-3
No files found.
Lib/test/test_curses.py
View file @
780199e6
...
...
@@ -276,11 +276,11 @@ def main(stdscr):
curses
.
resetty
()
def
test_main
():
if
not
sys
.
stdout
.
isatty
():
raise
unittest
.
SkipTest
(
"sys.
stdout
is not a tty"
)
if
not
sys
.
__stdout__
.
isatty
():
raise
unittest
.
SkipTest
(
"sys.
__stdout__
is not a tty"
)
# testing setupterm() inside initscr/endwin
# causes terminal breakage
curses
.
setupterm
(
fd
=
sys
.
stdout
.
fileno
())
curses
.
setupterm
(
fd
=
sys
.
__stdout__
.
fileno
())
try
:
stdscr
=
curses
.
initscr
()
main
(
stdscr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment