Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue15664] test_curses not run with 'make test'

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Aug 15, 2012, 3:31 AM

Post #1 of 8 (295 views)
Permalink
[issue15664] test_curses not run with 'make test'

New submission from Ronald Oussoren:

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.

----------
components: Tests
messages: 168272
nosy: ronaldoussoren
priority: normal
severity: normal
status: open
title: test_curses not run with 'make test'
versions: Python 3.3

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 3:45 AM

Post #2 of 8 (286 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

Ned Deily added the comment:

This appears to be the same issue as raised in Issue12669. Apparently it is not fixed.

----------
nosy: +ned.deily

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 3:52 AM

Post #3 of 8 (286 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

Ronald Oussoren added the comment:

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.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 4:02 AM

Post #4 of 8 (284 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

Ned Deily added the comment:

The "chr() arg not in range(0x110000)" from test_unget_wch is due to a bug in ncurses < 5.8; see Issue15037.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 4:21 AM

Post #5 of 8 (283 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

Ronald Oussoren added the comment:

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.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 5:42 AM

Post #6 of 8 (280 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

R. David Murray added the comment:

So this should be closed as a duplicate of issue 12669?

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 5:59 AM

Post #7 of 8 (280 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

Ronald Oussoren added the comment:

Yes.

I'll add a message to that issue to note that is also affects 'make test'

----------
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
type: -> behavior

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 15, 2012, 1:23 PM

Post #8 of 8 (279 views)
Permalink
[issue15664] test_curses not run with 'make test' [In reply to]

Changes by Nadeem Vawda <nadeem.vawda [at] gmail>:


----------
superseder: -> test_curses skipped on buildbots

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.