This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年08月15日 10:31 by ronaldoussoren, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg168272 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2012年08月15日 10:31 | |
I noticed that 'test_curses' is not started when performing "make test" on an OSX box: ... [ 42/369] test_curses test_curses skipped -- sys.__stdout__ is not a tty ... The host is a machine running OSX 10.8, fully up-to-date with patches and the current version of Xcode. The same thing happens when starting the testrunning in the same way as used by the test target in the Makefile: $ ./python.exe -W default -bb -E -R -m test -r -w -j 0 -u all,-largefile,-audio,-gui test_curses Using random seed 9471227 [1/1] test_curses test_curses skipped -- sys.__stdout__ is not a tty 1 test skipped: test_curses Those skips are all expected on darwin. |
|||
| msg168274 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2012年08月15日 10:45 | |
This appears to be the same issue as raised in Issue12669. Apparently it is not fixed. |
|||
| msg168276 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2012年08月15日 10:52 | |
the test does get run with 'make buildbottest', and then fails with a ValueError exception: $ /Users/ronald/Projects/python/rw/default/tbuild/python.exe -W default -bb -E -R -m test -r -w -j 1 -u all -W --timeout=3600 test_curses Using random seed 2242495 [1/1] test_curses test test_curses crashed -- Traceback (most recent call last): File "/Users/ronald/Projects/python/rw/default/Lib/test/regrtest.py", line 1221, in runtest_inner test_runner() File "/Users/ronald/Projects/python/rw/default/Lib/test/test_curses.py", line 338, in test_main main(stdscr) File "/Users/ronald/Projects/python/rw/default/Lib/test/test_curses.py", line 324, in main test_unget_wch(stdscr) File "/Users/ronald/Projects/python/rw/default/Lib/test/test_curses.py", line 283, in test_unget_wch read = chr(read) ValueError: chr() arg not in range(0x110000) That might be a bug in libcurses on OSX, I haven't tested with a separate install of libcurses yet. BTW. The patch mentioned in Issue12669 looks slightly bogus: as buildbot is a daemon it might not even have a controlling tty. With some luck a proper fix will require the explicit use of a pseudo-tty. |
|||
| msg168278 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2012年08月15日 11:02 | |
The "chr() arg not in range(0x110000)" from test_unget_wch is due to a bug in ncurses < 5.8; see Issue15037. |
|||
| msg168279 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2012年08月15日 11:20 | |
I knew the test failure looked familiar, but couldn't find the issue in the tracker. This issue (test_curses not running with make test) is due to '-j0' in the arguments to the test runner: with -j0 the runner uses multiprocessing and the stdout and stderr of the child processes are pipes, hence both sys.stdout and sys.__stdout__ are not tty's and the test isn't started. |
|||
| msg168287 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年08月15日 12:42 | |
So this should be closed as a duplicate of issue 12669? |
|||
| msg168288 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2012年08月15日 12:59 | |
Yes. I'll add a message to that issue to note that is also affects 'make test' |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:34 | admin | set | github: 59869 |
| 2012年08月15日 20:23:39 | nadeem.vawda | set | superseder: test_curses skipped on buildbots |
| 2012年08月15日 12:59:46 | ronaldoussoren | set | status: open -> closed type: behavior messages: + msg168288 resolution: duplicate stage: resolved |
| 2012年08月15日 12:42:55 | r.david.murray | set | nosy:
+ r.david.murray messages: + msg168287 |
| 2012年08月15日 11:20:59 | ronaldoussoren | set | messages: + msg168279 |
| 2012年08月15日 11:02:53 | ned.deily | set | messages: + msg168278 |
| 2012年08月15日 10:52:42 | ronaldoussoren | set | messages: + msg168276 |
| 2012年08月15日 10:45:02 | ned.deily | set | nosy:
+ ned.deily messages: + msg168274 |
| 2012年08月15日 10:31:19 | ronaldoussoren | create | |