[issue18093] Move main functions to a separate Programs directory

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ronald Oussoren

Ronald Oussoren added the comment:

There appears to be an unrelated edit to configure/configure.ac in the patch 
(moving ARCH_RUN_32BIT to another location), otherwise the patch looks fine.

I agree that it isn't worthwhile to try to port EasyDialogs to an API that is 
available, that's a too large change in a bugfix release and as you mentioned 
the entire module is gone in py3k.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Ned Deily added the comment:

Unfortunately, the configure.ac change is not unrelated.  It turns out that 
ARCH_RUN_32BIT has been broken for some time.  But it hasn't really mattered up 
to now where I do really need to force 32-bit mode during the build.  Also, the 
patch isn't quite right for the 10.4 case where LIPO_32BIT_FLAGS is empty.  
I'll fix it before applying.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18050] embedded interpreter or virtualenv fails with ImportError: cannot import name MAXREPEAT

2013-05-30 Thread Ned Deily

Ned Deily added the comment:

Another report of users being affected by this issue:  
https://trac.macports.org/ticket/39207

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18050
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17967] urllib2.open failed to access a url when a perent directory of the url is permission denied

2013-05-30 Thread zhaoqifa

zhaoqifa added the comment:

Sorry for replying so late.
1) Will the above change have any security implications.
---It does not seem to me either.

2) On Ubuntu, I am unable to setup a directory based (ACL'ed) anonymous ftp 
server. The option is either anonymous from ftp root (/) which will map to my 
operating system folder (/srv/ftp) or non-anonymous. I wonder how your server 
is configured to allow anonymous from a particular point onwards.
---I configured proftpd like this:
Limit WRITE DIRS
DenyAll
/Limit
Directory /home/*
Limit DIRS LIST NLIST
AllowAll
/Limit
/Directory
And get message as bellow when login anonymous:
lftp perf00:~ cd /home
cd: Access failed: 550 /home: No such file or directory
lftp perf00:~ cd /home/work
cd ok, cwd=/home/work
lftp perf00:/home/work cd /home/work/test
cd ok, cwd=/home/work/test
lftp perf00:/home/work/test ls
drwxrwxr-x   8 work work 4096 Jun 15  2011 pb

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17967
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18050] embedded interpreter or virtualenv fails with ImportError: cannot import name MAXREPEAT

2013-05-30 Thread Ned Deily

Ned Deily added the comment:

Also: 
http://stackoverflow.com/questions/16301735/importerror-cannot-import-name-maxrepeat-with-cx-freeze

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18050
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18093] Move main functions to a separate Programs directory

2013-05-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Added file: 
http://bugs.python.org/file30423/issue985064_plist_validation_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Added file: http://bugs.python.org/file30424/issue18098_build_applet_rev1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Removed file: 
http://bugs.python.org/file30423/issue985064_plist_validation_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Removed file: http://bugs.python.org/file30420/issue18098_build_applet.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cfdb4598c935 by Ned Deily in branch '2.7':
Issue #18098: The deprecated OS X Build Applet.app fails to build on
http://hg.python.org/cpython/rev/cfdb4598c935

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Ned Deily added the comment:

Committed for release in 2.7.6.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17269] getaddrinfo segfaults on OS X when provided with invalid arguments combinations

2013-05-30 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +benjamin.peterson, georg.brandl, larry
priority: normal - release blocker
resolution: fixed - 
stage: committed/rejected - needs patch
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17269] getaddrinfo segfaults on OS X when provided with invalid arguments combinations

2013-05-30 Thread Ronald Oussoren

Ronald Oussoren added the comment:

That sucks. A patch should be easy, but I probably won't get around to that 
until sunday.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread Tim Golden

Tim Golden added the comment:

Personally, I'm +0 at best on this change. It would achieve consistency with 
Linux but I'm not sure what you'd do with such functionality.

Adding Richard Oudkerk who did the rework of the interrupt signal for 3.3. 
Richard, any opinion on this?

--
nosy: +sbt
priority: normal - low
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18040
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18051] get_python_version undefined in bdist_rpm.py

2013-05-30 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage:  - committed/rejected
superseder:  - get_python_version is not import in bdist_rpm.py
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18051
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-30 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage:  - patch review
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18045
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17375] Add docstrings to methods in the threading module

2013-05-30 Thread moijes12

moijes12 added the comment:

Attached is a patch built against Python 3.3. I've taken karlcow's patch and 
used it for Python 3.  I have run the test suite(./python -m test -j3) and the 
sanity check (make patchcheck) and they worked fine.

--
nosy: +moijes12
Added file: http://bugs.python.org/file30425/issue-17375-python33.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17375
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18050] embedded interpreter or virtualenv fails with ImportError: cannot import name MAXREPEAT

2013-05-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I just think that the patch only silences an import error. Is test_re passed 
with this patch on 32-bit platform with =2.7.3 static binaries and 2.7.5 
py-files?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18050
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2013-05-30 Thread Florent Xicluna

New submission from Florent Xicluna:

While testing wsgiref w.r.t RFC2616, I noticed that it sets the Content-Length 
to 0 when the application returns 304 Not Modified.

This is a violation of RFC 2616 section 10.3.5.

And the net effect is a weird bug with some browsers (tested with Chrome 27) 
where the resource is truncated on 304 Not Modified.
(the resource was a CSS file in that case)

This is loosely related to http://bugs.python.org/issue3839.


# How to reproduce:

def test_304():
import time
from email.utils import formatdate
from wsgiref.simple_server import make_server

def demo_app(environ, start_response):
if 'HTTP_IF_MODIFIED_SINCE' in environ:
start_response(304 Not Modified, [])
return []
headers = [('Content-Type', 'text/html; charset=utf-8'),
   ('Last-Modified', formatdate(time.time(), usegmt=True))]
start_response(200 OK, headers)
return [Hello World!]

httpd = make_server('127.0.0.1', 8000, demo_app)
sa = httpd.socket.getsockname()
print(Serving HTTP on %s port %s ... % sa)
httpd.serve_forever()

if __name__ == '__main__':
test_304()

--
components: Library (Lib)
messages: 190352
nosy: flox, pitrou, pje
priority: normal
severity: normal
status: open
title: wsgiref sets Content-Length: 0 on 304 Not Modified
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread Richard Oudkerk

Richard Oudkerk added the comment:

I am not to familiar with the signal handling machinery.  (I only did 
some refactoring to expose the event handle already used by time.sleep().)

The change looks reasonable, but I am also not sure how necessary it is.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18040
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread STINNER Victor

STINNER Victor added the comment:

 Appearently the default maximum stack size isn't large enough for the default 
 value of the recursion limit.

Why not changing the recursion limit instead of the size of the stack?

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Ronald Oussoren

Ronald Oussoren added the comment:

I'd prefer to keep the default recursion limit the same as on Linux, changing 
the recursion limit on OSX would just introduce an unnecessary difference 
between the two platforms.

The patch changes the maximum stack size from 8 to 16 MByte, neither of which 
is huge and shouldn't cause other problems.

I'd also like to increase the default stack size for newly created threads (see 
#18049) and will update that patch to create a 16 MByte stack as well.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread STINNER Victor

STINNER Victor added the comment:

 The patch changes the maximum stack size from 8 to 16 MByte, neither of which 
 is huge and shouldn't cause other problems.

On Mac OS X: Is the memory allocated at Python startup, or on demand,
as the stack grows? If I am correct, the physical memory is allocated
on demand on Linux.

2013/5/30 Ronald Oussoren rep...@bugs.python.org:

 Ronald Oussoren added the comment:

 I'd prefer to keep the default recursion limit the same as on Linux, changing 
 the recursion limit on OSX would just introduce an unnecessary difference 
 between the two platforms.

 The patch changes the maximum stack size from 8 to 16 MByte, neither of which 
 is huge and shouldn't cause other problems.

 I'd also like to increase the default stack size for newly created threads 
 (see #18049) and will update that patch to create a 16 MByte stack as well.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18075
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-05-30 Thread Tom van Leeuwen

New submission from Tom van Leeuwen:

When using socket.sendall() to send a buffer of 2GB or more (for example, 
numpy.zeros(2*GB, dtype=numpy.uint8) ), it doesn't send anything at all.

In socketmodule.c, socket.sendall() sock_sendall uses an int for len, while 
this should be a Py_ssize_t.

--
components: Build
messages: 190357
nosy: Tom.van.Leeuwen
priority: normal
severity: normal
status: open
title: socket.sendall() cannot send buffers of 2GB or more
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Ronald Oussoren

Ronald Oussoren added the comment:

On 30 May, 2013, at 14:50, STINNER Victor rep...@bugs.python.org wrote:

 
 STINNER Victor added the comment:
 
 The patch changes the maximum stack size from 8 to 16 MByte, neither of 
 which is huge and shouldn't cause other problems.
 
 On Mac OS X: Is the memory allocated at Python startup, or on demand,
 as the stack grows? If I am correct, the physical memory is allocated
 on demand on Linux.

Memory for the stack is allocated on demand, the parameter sets the maximum 
size that the stack can grow to. See also man ld(1).

Ronald

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-05-30 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Tk.split() doesn't work with nested Unicode strings, but works with nested 
bytes.

 import tkinter
 t = tkinter.Tcl()
 t.split('a {b c}')
('a', ('b', 'c'))
 t.split(b'a {b c}')
('a', ('b', 'c'))
 t.split(('a {b c}',))
('a {b c}',)
 t.split((b'a {b c}',))
(('a', ('b', 'c')),)

I think this is unintentional. Here is a patch which processes strings inside a 
tuple as bytes objects. It also adds tests for Tk.splitline() and Tk.split().

--
components: Tkinter
files: tkinter_split_nested_unicode.patch
keywords: patch
messages: 190359
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Tk.split() doesn't work with nested Unicode strings
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30426/tkinter_split_nested_unicode.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18101
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-05-30 Thread Phil Connell

Changes by Phil Connell pconn...@gmail.com:


--
nosy: +pconnell

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17792
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-05-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +gpolo, roger.serwy
versions: +Python 2.7
Added file: 
http://bugs.python.org/file30427/tkinter_split_nested_unicode-2.7.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18101
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-05-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
components: +Extension Modules -Build
nosy: +pitrou
stage:  - needs patch
versions: +Python 2.7 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, I considered this option. A sure way to get rid of this and future changes 
in Tcl types, is get rid of Tcl_Obj at all and always return strings (if it is 
not a number or list). The drawback of this method is that occurs unnecessary 
conversion between Tcl and Python types and that information about types is 
lost. Also it is possible to hamper support for new Tcl types (dict, StateSpec, 
etc) in  future.

Another way is much more difficult. We need to allow all Tkinter functions to 
accept Tcl_Obj. Unfortunately this doesn't solve the problem fully because 
other code might expect a string instead of Tcl_Obj. We don't have enough test 
coverage to verify that the changes are sufficient. In any case, there are 
third-party code, which will also have to change to support the new Tcl 
versions.

--
dependencies: +Tk.split() doesn't work with nested Unicode strings

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-05-30 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

int len = pbuf.len;
Why doesn't gcc emit a warning here?

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Removed file: http://bugs.python.org/file29477/tkinter_splitlist.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here are a patch which quickly switch off Tcl_Obj.

--
Added file: http://bugs.python.org/file30428/tkinter_no_tcl_obj.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And here is a patch which allows Tk.splitline() and Tk.split() to work with 
Tcl_Obj. It also includes some other minor fixes to support Tcl 8.6. The patch 
includes a fix for issue18101.

--
Added file: http://bugs.python.org/file30429/tkinter_split.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-30 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for catching this.  I think the patch is incorrect when it replaces 
“from sysconfig import get_python_version” by “from distutils.sysconfig import 
get_python_version”; it should only add the missing import in bdist_rpm.py, not 
touch the other modules.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18045
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread Hagen Fürstenau

New submission from Hagen Fürstenau:

The following code will sometimes warn about an ignored TypeError('catching 
classes that do not inherit from BaseException is not allowed',) on termination:


class MyException(Exception):
pass

def gen():
try:
yield
except MyException:
pass

g = gen()
next(g)


Of course, MyException inherits from Exception, so there should be no problem.

Apparently, MyException gets destroyed before the generator object (at least 
sometimes, presumably depending on the hash randomization seed), and the 
destructor of the generator object then complains because there is no 
MyException any more. At least that's my explanation of this, without having 
digged into the code.

--
components: Interpreter Core
messages: 190365
nosy: hagen
priority: normal
severity: normal
status: open
title: except-clause with own exception class inside generator can lead to 
confusing warning on termination
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18102
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18101
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread Hagen Fürstenau

Hagen Fürstenau added the comment:

s/digged/dug/  :-)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18102
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread R. David Murray

R. David Murray added the comment:

You are almost certainly correct.  MyException can get set to None during 
interpreter shutdown.  There are a couple of active issues and a PEP that 
address this type of problem, so this issue probably isn't needed, but I'll 
leave that up to Antoine, who is working on it.

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18102
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17792
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18091] Remove PyNoArgsFunction

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18083] _sysconfigdata.py is installed in an arch-independent directory

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18083
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-30 Thread Dmi Baranov

Dmi Baranov added the comment:

I would agree that the patch is incorrect, if it was produced with additional 
refactoring or changes in functionality, not described in the issue. It's just 
a PEP8 compliance at package level.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18045
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Larry Hastings

Larry Hastings added the comment:

I poked around in a draft of the next ANSI C standard dated April 12 2011.  
They don't have much to say about the semantics of register.  The definition 
is found in 6.7.1.6:

A declaration of an identifier for an object with storage-class
specifier register suggests that access to the object be as fast
as possible.

In a footnote they say you can't take the address of something declared 
register.

In 6.7.6.3.2 they explicitly allow using register as part of the 
specification of a function parameter.  However, in 6.9.2 they say register 
cannot appear as part of an external declaration, including those for functions.

6.9.2 is where I stake my claim.  If register is irrelevant to calling 
convention, then why would the C standard preclude using it in an external 
declaration?  If it had no effect on the call they wouldn't care.

Therefore, declaring a parameter as register affects its calling convention.  
(Or, it would, if register actually did anything). Therefore casting a 
function from using register to not using register is a bug.  Therefore we 
shouldn't do it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17987] test.support.captured_stderr, captured_stdin not documented

2013-05-30 Thread Dmi Baranov

Dmi Baranov added the comment:

Amended

--
Added file: http://bugs.python.org/file30430/issue17987_6.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17987
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread David Gilman

David Gilman added the comment:

So the original motivation here was to piggyback on SIGINT in order to do 
something like this on Windows: 
http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-application

I've given Tim's patch a shot and I see that I've been barking up the wrong 
tree.  I agree that this one-liner is a kinda invasive change and probably 
isn't worth putting in a point release.  Thanks for the help.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18040
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I will keep this issue alive so that I can check whether it is fixed by further 
changes.

--
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18102
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread Tim Golden

Tim Golden added the comment:

Thanks for the feedback, David. Closing as won't fix.

--
resolution:  - wont fix
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18040
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Stefan Krah

Stefan Krah added the comment:

+1 for removing all occurrences of register.


Regarding the grammar, we have:

function-definition:
declaration-specifiers-opt declarator declaration-list-opt 
compound-statement


So I think that part of an external declaration refers to the outermost
declaration-specifiers, not to some inner declaration-specifiers that are
part of the parameter-type-list. Otherwise it would also be forbidden to
use register in the compound-statement. ;)

Thus, IMO this is legal:

   a) int f (register int x) {return x;}


But this is not allowed:

   b) register int f (int x) {return x;}


As Mark said, a) does not alter the calling convention. It's just a request
to keep x in a register in the function body once the parameter passing is
done.

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

 If register is irrelevant to calling convention, then why would the C
 standard preclude using it in an external declaration?

Maybe here external is the opposite of static: register is OK in a single 
translation unit (where the calling convention does not really matter), but not 
allowed between multiple .c files (which register, anyway?)

+1 for removing it.

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 93eb15779050 by Terry Jan Reedy in branch '2.7':
Issue #15392: Create a unittest framework for IDLE, 2.7 version.
http://hg.python.org/cpython/rev/93eb15779050

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18052] IDLE 3.3.2 Windows taskbar icon regression

2013-05-30 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I can now reproduce it, and asked on SO 
(http://stackoverflow.com/questions/16843727/)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18052
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ayank koernia

Changes by Ayank koernia ayankbuz...@gmail.com:


Added file: http://bugs.python.org/file30431/Tante Girang.uhtml

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b07ad4b5e349 by Łukasz Langa in branch 'default':
Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS X
http://hg.python.org/cpython/rev/b07ad4b5e349

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18098] Build Applet.app build fails on OS X 10.8

2013-05-30 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Removed file: http://bugs.python.org/file30431/Tante Girang.uhtml

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2013-05-30 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
versions:  -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Larry Hastings

Larry Hastings added the comment:

Having re-read the spec a couple times, I am now thoroughly confused and don't 
know what to think.  Certainly I now believe I was previously misinterpreting 
aspects of the spec.

I still think removing register from the parameter lists of external 
functions is a good idea.  But smart people work on CPython, particularly on 
dictobject.c, so I find it easy to believe I'm missing something.  If having it 
there is actually a good idea I'd love to learn why!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Łukasz Langa

Changes by Łukasz Langa luk...@langa.pl:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Mark Dickinson

Mark Dickinson added the comment:

 +1 for removing all occurrences of register.

Seconded.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18103] Create a GUI test framework for Idle

2013-05-30 Thread Terry J. Reedy

New submission from Terry J. Reedy:

This is a follow-up to #15392, which created the Idle test framework. The 
similar endpoint for this issue will be a framework for tests that require a 
gui resource, at least one prototype test file, and documentation of Idle 
practice. At the moment, completely automated tests that can run on buildbots 
with a gui, but without human intervention, are a lower priority to me than 
adding text-only tests.

The tkinter test framework should be a starting point, but some things should 
be modernized, as they were for the basic framework. This means using unittest 
rather than regrtest. One thing to copy may be to put gui-tests in a separate 
directory. I presume load_tests() could conditionally load tests in such a 
directory.

It is not clear to me to what extent tk widgets can be created and manipulated 
without being shown on a screen or needing a 'gui' resource.

Idle tests are not intended to test tkinter and tk. A mock_tk could replace at 
least some gui use. Creating a mock-tk framework would be a different issue 
from this one. A generic tk mock might possibly go in a tkinter subdirectory. 
Mocks of Idle classes would belong somewhere below idle_test.

As noted in #15392, about 20 idlelib files have primitive non-automated 'main' 
tests requiring unspecified human action and observation, some of which do not 
even run. The 'test' is to see whether the action produced the expected 
response (which one has to know) or to check the appearance of a text or dialog 
widget. A first step might be to upgrade and semi-automate these instructions 
with unittests in idle_test/human. Running them all with one documented command 
or import would be much nicer pleasant than having to discover and run each 
individually. I might make this a separate sub-issue.

--
assignee: terry.reedy
messages: 190381
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Create a GUI test framework for Idle
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18103
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18103] Create a GUI test framework for Idle

2013-05-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18103
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16226] IDLE crashes on *File / Path browser*

2013-05-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Test has been committed on all three branches as part of #15392

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7883] CallTips.py _find_constructor does not work

2013-05-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#12520 deleted _find_constructor in 3.x as it works with, but only with 
old-style classes (gone in 3.x) and just uses getattr(ob, '__init__', None). I 
believe the tests in this patch duplicate existing tests at the bottom of 
CallTips.py (increased from 10 to 30 as part of #12510). I will recheck when I 
move the existing tests into the new idle_test/test_calltips.py.

--
versions: +Python 2.7 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7883
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7883] CallTips.py _find_constructor does not work

2013-05-30 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7883
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Biggest change is no support module in 2.7, so in test_idle.py import inside 
try:except to skip if dependencies not present. Minor changes in CallTips.py 
and test_calltips.py. Buildbots are fine. This meets my initial goal; issue 
done.

I opened #18103 for consideration of gui tests. But except for improving the 
existing no-buildbot, human-needed tests, I consider that a lower priority 
right now.

--
resolution:  - fixed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage: commit review - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Ned Deily

Ned Deily added the comment:

The test.support module was renamed in Python 3 from test.test_support in 
Python 2.  While the 3x support has expanded and diverged somewhat, with a bit 
of try hacking it should be possible to minimize the source differences between 
the 2.7 and 3.x tests.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Ezio Melotti

Ezio Melotti added the comment:

For the other modules we just use test.test_support on 2.x and test.support in 
3.x, without using try/except and without trying to maintain source 
compatibility with both.  You might get a merge conflict every once in a while, 
but I don't think that's a big deal.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6159916c712e by Terry Jan Reedy in branch '2.7':
Issue #15392: Use test.test_support, as used test.support in 3.x.
http://hg.python.org/cpython/rev/6159916c712e

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1500504] Alternate RFC 3986 compliant URI parsing module

2013-05-30 Thread Łukasz Langa

Changes by Łukasz Langa luk...@langa.pl:


--
nosy: +lukasz.langa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1500504
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18104] Idle: make human-mediated GUI tests usable

2013-05-30 Thread Terry J. Reedy

New submission from Terry J. Reedy:

23 of the 62 idlelib/*.py files have an 'if __name__ ...' test that brings up a 
tkinter gui widget and waits for the human tester to do ... something. Problems:

0. They are a bit of a nuisance to run individually: either type
python -m idlelib.SomeLongNameYoumightMistype
or open in an editor and hit F5.

Running all is much worse given that I found no list; doing the above with all 
62 files to find the 23 is something few would do.

1. About 5 do not run; at least 1 is a simple incomplete 2to3 fix (which means 
it has never been run with 3.x). I will post separately any that are not 
obvious.

2. They were written by and for the module authors; some are a puzzle. For 
example: python -m idlelib.FileList. I do not know what to do to perform the 
test.

3. About 4 of those that do run do not stop properly, depending on how run. 
Example: after python -m idlelib.ColorDelegator, the puzzling window (blank on 
3.3, not 2.7) seems to close correctly, but open the same file and run with F5 
(2.7 or 3.3, Windows) and pressing [x] in the window does nothing. But most do 
close so this is something different with a few.

4. Even when the test is fairly obvious, (python -m idlelib.MultiStatusBar) 
there is no way to indicate failure so that an  automated record of failures is 
collected.

My overall idea expands on the example of the dialog tests, such as
python -m idlelib.aboutDialog
Each opens a master test window with a start button that opens a window with 
the dialog be tested. Make a standardized master window for all tests, add an 
explanation of what to do (or a button to display it) and buttons to record the 
result: OK, NothingHappened, or Error (explain in text widget). A test method 
would set up the explanation and test item, connect both to a master window, 
run, retrieve result (I have no idea how to do this ;-), and end with 
AssertTrue(result, explanation).

I am thinking to suffix human-only tests with '_H' and put 'test_xyy_H' in a 
subdirectory such as idle_test/human. Some test files might test several 
different modules, such as 'test_dialog_H'.

--
assignee: terry.reedy
messages: 190388
nosy: roger.serwy, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Idle: make human-mediated GUI tests usable
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18104
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18103] Create a GUI test framework for Idle

2013-05-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I opened #18104 for the human-required gui tests described in the last 
paragraph above.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18103
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 16fea8b0f8c4 by Terry Jan Reedy in branch '3.3':
Issue #15392: Finish news entry.
http://hg.python.org/cpython/rev/16fea8b0f8c4

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18104] Idle: make human-mediated GUI tests usable

2013-05-30 Thread R. David Murray

R. David Murray added the comment:

Since you *don't* want these to be autodiscovered by testing frameworks, 
perhaps h_test_.py would be a better naming scheme.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18104
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com