Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncurses putwin() fails in test_module_funcs #71510

Closed
xdegaye mannequin opened this issue Jun 15, 2016 · 6 comments
Closed

ncurses putwin() fails in test_module_funcs #71510

xdegaye mannequin opened this issue Jun 15, 2016 · 6 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Jun 15, 2016

BPO 27323
Nosy @Yhg1s, @xdegaye, @serhiy-storchaka, @yan12125

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2016-08-20.18:04:51.329>
created_at = <Date 2016-06-15.08:15:10.941>
labels = ['type-bug', 'library']
title = 'ncurses putwin() fails in test_module_funcs'
updated_at = <Date 2016-09-06.18:06:03.023>
user = 'https://github.com/xdegaye'

bugs.python.org fields:

activity = <Date 2016-09-06.18:06:03.023>
actor = 'xdegaye'
assignee = 'none'
closed = True
closed_date = <Date 2016-08-20.18:04:51.329>
closer = 'serhiy.storchaka'
components = ['Library (Lib)']
creation = <Date 2016-06-15.08:15:10.941>
creator = 'xdegaye'
dependencies = []
files = []
hgrepos = []
issue_num = 27323
keywords = []
message_count = 6.0
messages = ['268608', '273229', '273233', '273235', '273238', '274581']
nosy_count = 4.0
nosy_names = ['twouters', 'xdegaye', 'serhiy.storchaka', 'yan12125']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue27323'
versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

@xdegaye
Copy link
Mannequin Author

xdegaye mannequin commented Jun 15, 2016

This is with ncurses 6.0.

$ ./python -m test -v -u curses -m test_module_funcs test_curses
== CPython 3.6.0a2+ (default:e3bb87952c62, Jun 15 2016, 08:24:47) [GCC 6.1.1 20160501]
==   Linux-4.6.1-2-ARCH-x86_64-with-arch little-endian
==   hash algorithm: siphash24 64bit
==   /home/xavier/src/python/default/build/test_python_17932
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_curses
test_module_funcs (test.test_curses.TestCurses)
Test module-level functions ... 
ERROR

======================================================================
ERROR: test_module_funcs (test.test_curses.TestCurses)
Test module-level functions
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/xavier/src/python/default/Lib/test/test_curses.py", line 212, in test_module_funcs
    self.stdscr.putwin(f)
_curses.error: putwin() returned ERR

@xdegaye xdegaye mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jun 15, 2016
@yan12125
Copy link
Mannequin

yan12125 mannequin commented Aug 20, 2016

This is actually a ncurses bug: http://lists.gnu.org/archive/html/bug-ncurses/2016-05/msg00000.html

@serhiy-storchaka
Copy link
Member

Thanks Chi Hsuan Yen.

Just wondering, how you built Python with ncurses 6.0 Xavier? There is an issue with compiling with ncurses 6.0 (bpo-25720).

@yan12125
Copy link
Mannequin

yan12125 mannequin commented Aug 20, 2016

NCURSES_OPAQUE is enabled if --with-reentrant is used. From Xavier's log I guess it's on Arch Linux. Arch Linux does not use --with-reentrant in ncurses [1] and it seems OpenSUSE does [2].

[1] https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/ncurses
[2] http://download.opensuse.org/repositories/home:/sleep_walker:/ncurses/openSUSE_Factory_ARM/src/ncurses6-6.0-13.9.src.rpm

@serhiy-storchaka
Copy link
Member

Thanks again for estimation.

@xdegaye
Copy link
Mannequin Author

xdegaye mannequin commented Sep 6, 2016

Just wondering, how you built Python with ncurses 6.0 Xavier?

I am using archlinux ncurses 6.0 [1] (sorry for the delay, no internet on a sail crossing).

[1] https://www.archlinux.org/packages/core/x86_64/ncurses/

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant