[issue28414] SSL match_hostname fails for internationalized domain names

2017-06-08 Thread Nathaniel Smith

Nathaniel Smith added the comment:

If the SSL module followed the pattern of encoding all str to bytes at the 
edges while leaving bytes alone, and used exclusively bytes internally (and in 
this case by "bytes" I mean "bytes objects containing A-labels"), then it would 
at least fix this bug and also make it possible for library authors to 
implement their own IDNA handling. Right now if you pass in a pre-encoded 
byte-string, exactly what ssl.py needs to compare to the certificate, then 
ssl.py will convert it *back* to text :-(.

--
nosy: +njs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-08 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/712/steps/test/logs/stdio

==
ERROR: test_queue_feeder_donot_stop_onexc 
(test.test_multiprocessing_spawn.WithProcessesTestQueue)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\_test_multiprocessing.py",
 line 767, in test_queue_feeder_donot_stop_onexc
self.assertTrue(q.get(timeout=0.1))
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\multiprocessing\queues.py",
 line 105, in get
raise Empty
queue.Empty

--
components: Tests, Windows
messages: 295385
nosy: davin, haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails 
randomly on x86 Windows7 3.x
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17305] IDNA2008 encoding missing

2017-06-08 Thread Nathaniel Smith

Changes by Nathaniel Smith :


--
nosy: +njs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

SubinterpreterTest.test_subinterps of test_capi also leaks. But it is likely 
the same bug than this issue (SubinterpreterTest.test_callbacks_leak() of 
test_atexit leaks).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Oh, 1abcf6700b4da6207fe859de40c6c1bada6b4fec introduced two more reference 
leaks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30594] Refcounting mistake in _ssl.c

2017-06-08 Thread Nathaniel Smith

Changes by Nathaniel Smith :


--
pull_requests: +2058

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30594] Refcounting mistake in _ssl.c

2017-06-08 Thread Nathaniel Smith

Changes by Nathaniel Smith :


--
pull_requests: +2057

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30594] Refcounting mistake in _ssl.c

2017-06-08 Thread Nathaniel Smith

Nathaniel Smith added the comment:

posted backports for 3.5 and 3.6. It looks like 2.7 is actually unaffected, 
because it doesn't have IDNA support, so there's no failure path in between 
when the reference is stored and when its INCREFed.

--
versions:  -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +2059

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread SylvainDe

SylvainDe added the comment:

As I was trying to test coverage for a few places where the same error was 
built, I have discovered another issue where the error message is very 
misleading:

 AssertionError: "^index\(\) takes no keyword arguments$" does not match 
"index() takes at least 1 argument (0 given)"
 def test_varargs4_kw(self):
 msg = r"^index\(\) takes no keyword arguments$"
 self.assertRaisesRegex(TypeError, msg, [].index, x=2)


Should I open another ticket to track this ?



Anyway, so far, I have reached the following conclusion regarding the test 
coverage:

Objects/call.c:551: "%.200s() takes no keyword arguments" => 
TESTED
(In _PyMethodDef_RawFastCallDict)

Objects/call.c:690: "%.200s() takes no keyword arguments" => 
Not tested
(In _PyMethodDef_RawFastCallKeywords)

Objects/call.c:737:PyErr_Format(PyExc_TypeError, "%.200s() takes no 
keyword arguments" => Not tested
(In cfunction_call_varargs)


Python/getargs.c:2508:PyErr_Format(PyExc_TypeError, "%.200s takes no 
keyword arguments" => TESTED (Now)
(In _PyArg_NoKeywords)

Python/getargs.c:2525:PyErr_Format(PyExc_TypeError, "%.200s() takes no 
keyword arguments" => Not tested
(In _PyArg_NoStackKeywords)


Any suggestion regarding how to test what is not tested is more than welcome.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

I have pushed a PR, if you can check it. Thanks

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28414] SSL match_hostname fails for internationalized domain names

2017-06-08 Thread Christian Heimes

Christian Heimes added the comment:

I have an idea for a different approach that can be applied to both ssl and 
socket module. Stay tuned to this station for a PEP broadcast!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

-SET_SYS_FROM_STRING_BORROW_INT_RESULT("warnoptions", warnoptions); 

Oh, it seems like the regression was introduced by me in the commit 
8fea252a507024edf00d5d98881d22dc8799a8d3, see:
http://bugs.python.org/issue18520#msg201472

Or maybe it comes from recent changes made by Eric Snow and Nick Coghlan 
related to Python initiallization (PEP 432). I don't know.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18520] Fixes bugs found by pyfailmalloc during Python initialization

2017-06-08 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +2060

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-06-08 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +2061

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30536] [EASY] SubinterpThreadingTests.test_threads_join_2() of test_threading leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

This issue is a duplicate of bpo-30547.

I tested that bpo-30547 fixes this issue.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

bpo-30536 has been marked as a duplicate of this issue: [EASY] 
SubinterpThreadingTests.test_threads_join_2() of test_threading leaks 
references.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, that issue wasn't [EASY] at all! But I tried to help Stéphane & Louie as 
much as I could ;-)

--
keywords:  -easy (C)
title: [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit 
leaks references -> [Windows] SubinterpreterTest.test_callbacks_leak() of 
test_atexit leaks references

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30596] Add close() to multiprocessing.Process

2017-06-08 Thread Antoine Pitrou

New submission from Antoine Pitrou:

multiprocessing.Process (actually, the _popen object attached to it) has a 
GC-based finalizer to release system resources (such as fds).  However, it 
would be nice to be able to release those resources in a timely manner.  Adding 
a close() method would let users do that.  What do you think?

--
components: Library (Lib)
messages: 295396
nosy: davin, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Add close() to multiprocessing.Process
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30534] error message for incorrect call degraded in 3.7

2017-06-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2063

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2062

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30597] Show expected input in custom "print" error message

2017-06-08 Thread Nick Coghlan

New submission from Nick Coghlan:

Back when we added the custom error message for missing parentheses in print 
calls, I also pre-seeded an explanation of the error on Stack Overflow: 
https://stackoverflow.com/questions/25445439/what-does-syntaxerror-missing-parentheses-in-call-to-print-mean-in-python/

While that does seem to be having the desired effect of explaining an otherwise 
cryptic message to people, William Brown pointed out that it could potentially 
be improved by taking advantage of the fact we have access to the rest of the 
line when working out the exact error text:

```
>>> print "Hello world!"
  File "", line 1
print "Hello world!"
   ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean 'print("Hello 
world!")'?
```

The rationale for such a change is similar to the rationale for adding the 
custom error message in the first place: the folks most likely to hit this are 
either attempting to run a Python 2 script on Py3, or else attempting to follow 
a Py2 tutorial on Py3, and *telling* them what's wrong isn't as clear as 
*showing* them (by reprinting the line with the parentheses added)

--
messages: 295397
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Show expected input in custom "print" error message
type: enhancement
versions: Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, SylvainDe, but by the time you expose your desire to work on this issue, 
I already had written two alternate patches. I needed only a time for deciding 
what of them is the more appropriate solution.

PR 1996 implements the first way. It removes explicit "()" from arguments 
passed to _PyArg_NoKeywords(). Fixed 23 functions and methods.

--
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30536] [EASY] SubinterpThreadingTests.test_threads_join_2() of test_threading leaks references

2017-06-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
superseder:  -> [Windows] SubinterpreterTest.test_callbacks_leak() of 
test_atexit leaks references

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30597] Show expected input in custom "print" error message

2017-06-08 Thread Sanyam Khurana

Sanyam Khurana added the comment:

Hi Nick,

Can I work on this issue?

--
nosy: +CuriousLearner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-06-08 Thread STINNER Victor

New submission from STINNER Victor:

Recently, the Python initialization was reworked to start to implement the PEP 
432:

- bpo-22257: commits 1abcf6700b4da6207fe859de40c6c1bada6b4fec and 
6b4be195cd8868b76eb6fbe166acc39beee8ce36

Now, Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit(). 
We tried with Stéphane Wirtel and Louie Lu to add Py_DECREF(warnoptions), but 
test_capi does crash with this change.

The problem is that warnoptions is stored in a C global variable *and* in 
sys.warnoptions of each interpreter. The ownership of this variable is unclear.

I don't think that it's a good idea to share a list between two interpreters 
and so I created this issue to propose to redesign this variable.

The tricky part is that the C global variable is also accessed by 2 public C 
functions: PySys_ResetWarnOptions() and PySys_AddWarnOptionUnicode().

--
messages: 295399
nosy: eric.snow, haypo, ncoghlan
priority: normal
severity: normal
status: open
title: Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()
type: resource usage
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13691] pydoc help (or help('help')) should show the doc for help

2017-06-08 Thread Nick Coghlan

Nick Coghlan added the comment:

Belatedly removing the "easy" tag, since that turned out to be thoroughly 
incorrect...

--
keywords:  -easy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

I created bpo-30598: Py_NewInterpreter() leaks a reference on warnoptions in 
_PySys_EndInit().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/x86%20Gentoo%20Refleaks%203.x/builds/28/steps/test/logs/stdio

1:50:39 load avg: 3.66 [302/405/8] test_threaded_import failed -- running: 
test_tarfile (80 sec)
beginning 6 repetitions
123456
..
test_threaded_import leaked [355866, 185490, 120912] references, sum=662268
test_threaded_import leaked [119138, 62100, 40480] memory blocks, sum=221718


Might be related to bpo-30598 and bpo-30547.

--
components: Tests
messages: 295403
nosy: haypo
priority: normal
severity: normal
status: open
title: test_threaded_import leaks references
type: resource usage
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-06-08 Thread Nick Coghlan

Nick Coghlan added the comment:

I'd suggest that the right fix here would be to move warnoptions into the 
config struct as proposed in the PEP: 
https://www.python.org/dev/peps/pep-0432/#supported-configuration-settings

The main reason we merged this as a private API was so we could do that 
setting-by-setting, with the test suite ensuring we weren't breaking anything.

It looks like in this case, it's the status quo that's broken, and the change 
makes it possible to fix it :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2064

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

See also bpo-30547 for other refleaks somehow related to that one.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset ab1cb80b435a34e4f908c97cd2f3a7fe8add6505 by Victor Stinner 
(Stéphane Wirtel) in branch 'master':
bpo-30547: Fix multiple reference leaks (#1995)
https://github.com/python/cpython/commit/ab1cb80b435a34e4f908c97cd2f3a7fe8add6505


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset ab1cb80b435a34e4f908c97cd2f3a7fe8add6505 by Victor Stinner 
(Stéphane Wirtel) in branch 'master':
bpo-30547: Fix multiple reference leaks (#1995)
https://github.com/python/cpython/commit/ab1cb80b435a34e4f908c97cd2f3a7fe8add6505


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30594] Refcounting mistake in _ssl.c

2017-06-08 Thread Nathaniel Smith

Changes by Nathaniel Smith :


--
pull_requests: +2065

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30594] Refcounting mistake in _ssl.c

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 54ba41ecc5711f89841342c5f9dd555ee13404b5 by Serhiy Storchaka 
(Nathaniel J. Smith) in branch '3.5':
[3.5] bpo-30594: Fixed refcounting in newPySSLSocket (GH-1992) (#1993)
https://github.com/python/cpython/commit/54ba41ecc5711f89841342c5f9dd555ee13404b5


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30594] Refcounting mistake in _ssl.c

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 854f7ba1d5cbb6a42511beae66c8dbe34f2cbcd3 by Serhiy Storchaka 
(Nathaniel J. Smith) in branch '3.6':
[3.6] bpo-30594: Fixed refcounting in newPySSLSocket (GH-1992) (#1994)
https://github.com/python/cpython/commit/854f7ba1d5cbb6a42511beae66c8dbe34f2cbcd3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 865de27dd79571a4a5c7a7d22a07fb909c4a9f8e by Victor Stinner in 
branch 'master':
bpo-30598: _PySys_EndInit() now duplicates warnoptions (#1998)
https://github.com/python/cpython/commit/865de27dd79571a4a5c7a7d22a07fb909c4a9f8e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov

Changes by Denis Osipov :


--
pull_requests: +2066

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov

Changes by Denis Osipov :


--
pull_requests: +2067

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30597] Show expected input in custom "print" error message

2017-06-08 Thread Eric V. Smith

Eric V. Smith added the comment:

You'll need to be careful about fully translating to python 3, though. What do 
you do with:

print >> sys.stderr, "message"

or:

print "message",

?

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov

Denis Osipov added the comment:

Tests on Windows buildbots passed. I've made PR for 3.5 and 3.6 backporting.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Even when the two latest refleak fixes 
(ab1cb80b435a34e4f908c97cd2f3a7fe8add6505 and 
865de27dd79571a4a5c7a7d22a07fb909c4a9f8e), test_threaded_import still leaks.

haypo@selma$ ./python -m test -R 3:3 -m test_side_effect_import 
test_threaded_import  
Run tests sequentially
0:00:00 load avg: 0.39 [1/1] test_threaded_import
beginning 6 repetitions
123456
..
test_threaded_import leaked [1374, 1374, 1374] references, sum=4122
test_threaded_import leaked [459, 460, 460] memory blocks, sum=1379
test_threaded_import failed

1 test failed:
test_threaded_import

Total duration: 392 ms
Tests result: FAILURE

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov

Changes by Denis Osipov :


--
versions: +Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 6cca5c8459cc439cb050010ffa762a03859d3051 by Serhiy Storchaka in 
branch 'master':
bpo-30592: Fixed error messages for some builtins. (#1996)
https://github.com/python/cpython/commit/6cca5c8459cc439cb050010ffa762a03859d3051


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30534] error message for incorrect call degraded in 3.7

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 6cca5c8459cc439cb050010ffa762a03859d3051 by Serhiy Storchaka in 
branch 'master':
bpo-30592: Fixed error messages for some builtins. (#1996)
https://github.com/python/cpython/commit/6cca5c8459cc439cb050010ffa762a03859d3051


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30486] Allow setting cell value

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 64505a1f6c0af4574e17e823b27ffe24eca44df5 by Serhiy Storchaka 
(Lisa Roach) in branch 'master':
bpo-30486: Allow setting cell value (#1840)
https://github.com/python/cpython/commit/64505a1f6c0af4574e17e823b27ffe24eca44df5


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30486] Allow setting cell value

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution Lisa!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread SylvainDe

SylvainDe added the comment:

Hi serhiy.storchaka, this is fine by me! I've added a corresponding comment 
with questions/suggestions on the Github PR.

Do you reckon I should open another ticket for the issue mentionned in my 
previous message ? I'm happy to take care of it :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If you know how to write tests for these cases a patch is welcome. But this may 
be not easy.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

The leak was introduced by the commit 346cbd351ee0dd3ab9cb9f0e4cb625556707877e.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30529] Incorrect error messages for invalid whitespaces in f-string subexpressions

2017-06-08 Thread Eric V. Smith

Eric V. Smith added the comment:

Sorry, I've been busy. I'll get to this soon, though.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset ca1b66fd059758bbd6e2cc62c8f2adecefe8f942 by Victor Stinner (Denis 
Osipov) in branch '3.6':
[3.6] bpo-30584: Fix test_os fails on non-English Windows (GH-1980) (#1999)
https://github.com/python/cpython/commit/ca1b66fd059758bbd6e2cc62c8f2adecefe8f942


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Would it be possible to add an assertion to _PyArg_NoKeywords() to prevent 
regressions? Fail if funcname contains "(" or ")". For example:

/* funcname must not contain ( or ), since "()" suffix is added in the error 
message */
assert(!strchr(funcname, '(') && !strchr(funcname, ')'));

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It would be possible to make _PyArg_NoKeywords() adding "()" only if the passed 
argument don't contain them. But since this is a private API, it was easier to 
just remove "()" from arguments. In any case most uses of _PyArg_NoKeywords() 
are generated by Argument Clinic and they don't pass "()" in the argument.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset a0b901b8fcfda864070335b249071508ee0c by Victor Stinner (Denis 
Osipov) in branch '3.5':
[3.5] bpo-30584: Fix test_os fails on non-English Windows (GH-1980) (#2000)
https://github.com/python/cpython/commit/a0b901b8fcfda864070335b249071508ee0c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Oh no, I don't expect anything smart :-) Just an assertion to catch obvious 
mistakes when the function is called manually (not using Argument Clinic).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-08 Thread SylvainDe

New submission from SylvainDe:

Issue found while trying to write tests for  https://bugs.python.org/issue30592 
.

Issue related to http://bugs.python.org/issue30534 .

The following code:

[].index(x=2)

should raise the following error:

TypeError: index() takes no keyword arguments

but currently raises:

TypeError: index() takes at least 1 argument (0 given)


This is easily reproduced with the following unit test:

# AssertionError: "^index\(\) takes no keyword arguments$" does not match 
"index() takes at least 1 argument (0 given)"
def test_varargs4_kw(self):
msg = r"^index\(\) takes no keyword arguments$"
self.assertRaisesRegex(TypeError, msg, [].index, x=2)

--
components: Interpreter Core
messages: 295427
nosy: SylvainDe
priority: normal
severity: normal
status: open
title: Error message incorrect when index is called with keyword argument 
("[].index(x=2)")
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

3.6 is not affected by this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If add an assertion, the user code could provoke a crash by creating an 
exception type with a name containing "()": type('E()', (BaseException,), {}). 
Thus this should be a runtime check that raises an exception. What the type of 
an exception should be raised?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30547] [Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov

Changes by Denis Osipov :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
title: test_threaded_import leaks references -> os.register_at_fork(): allow to 
unregister callbacks -- test_threaded_import leaks references

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-08 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
nosy: +matrixise

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27321] Email parser creates a message object that can't be flattened

2017-06-08 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27321] Email parser creates a message object that can't be flattened

2017-06-08 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

maybe we could merge the PR, and I could propose a backport for 3.5 and 3.6.

2.7 is affected ?

--
nosy: +matrixise

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

> The leak was introduced by the commit 
> 346cbd351ee0dd3ab9cb9f0e4cb625556707877e.

This commit "bpo-16500: Allow registering at-fork handlers" adds the following 
code to Lib/random.py:

+if hasattr(_os, "fork"):
+_os.register_at_fork(_inst.seed, when='child')

test_threaded_import creates fresh instance of the random module and so 
os.register_at_fork() is called multiple time with multiple different callbacks.

The problem is that it's not currently possible to remove callbacks. It would 
be nice to be able to unregister callbacks, at least a private for unit tests.

The minimum would be a os.unregister_at_fork() function.

I would prefer to have get/set functions to be able to restore callbacks once 
tests complete, but also to detect when an unexpected callback was registered. 
For example, write a new test in Lib/test/libregrtest/save_env.py for regrtest.

See also bpo-16500 which added the new API.

--
nosy: +pitrou, serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Good catch! This issue is similar to issue30534, but caused by generated code.

The solution is easy: make Argument Clinic (Tools/clinic/clinic.py) generating 
_PyArg_NoStackKeywords() before _PyArg_ParseStack() and regenerate all 
generated by Argument Clinic code (make clinic).

--
components: +Argument Clinic
keywords: +easy
nosy: +larry, serhiy.storchaka
stage:  -> needs patch
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Thanks Denis Osipov for the fix and backports!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-08 Thread SylvainDe

SylvainDe added the comment:

Can I give this a try or is anyone working on this already ?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

> If add an assertion, the user code could provoke a crash by creating an 
> exception type with a name containing "()": type('E()', (BaseException,), {}).

Right. Do we have such code currently? If not, we can remove the assertion 
later if we want to use such error message.

> Thus this should be a runtime check that raises an exception. What the type 
> of an exception should be raised?

Sorry, I don't understand. funcname is not always a constant string like "func"?

Well, it was just an idea. Ignore it if you see practical issues.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This make the API and implementation more complex. I prefer making tests not 
creating several instances of the random module. Or do this in a short-living 
subprocess.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, pleas do this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

We don't have such code currently. The function name containing "()" looks 
silly. But funcname is not always a constant string, you can set it to 
arbitrary string when create a BaseException subclass.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30597] Show expected input in custom "print" error message

2017-06-08 Thread Nick Coghlan

Nick Coghlan added the comment:

Those are easy enough to check with strncmp() even in C, so we could make them 
manageable by just including "" in the error message, rather than the 
full text of the original statement.

That is:

Did you mean 'print()'? # Default 
Did you mean 'print(, file=)'?  # starts with '>>'
Did you mean 'print(, end=' ')'?# ends with ','

That's basically correct even when printing multiple arguments, so I'd avoid 
the temptation to detect commas within the line (particularly since they might 
be inside a string).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-08 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Agreed with Serhiy.  test_threaded_import should just re-import a module which 
has less side effects.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2068

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

With https://github.com/python/cpython/pull/2001 test_threaded_import doesn't 
leak anymore.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27321] Email parser creates a message object that can't be flattened

2017-06-08 Thread R. David Murray

R. David Murray added the comment:

I'm going to try to review this this weekend.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27321] Email parser creates a message object that can't be flattened

2017-06-08 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

ok, I have tested on 3.6 and 3.5, just with the test. and in this case, we get 
the errors on both.
if we apply the patch of Johannes, the test passes and there is no issues.

+1 the backports for 3.5 and 3.6 is just a git cherry-picking.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2069

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30597] Show expected input in custom "print" error message

2017-06-08 Thread Eric V. Smith

Eric V. Smith added the comment:

That sounds good to me.

Just to elaborate on my earlier message, since it might have been too terse:

I think it would be misleading to give in error at:

print >>sys.stderr, "message"

and say:
Did you mean 'print("message")'?

since they're not equivalent. If you can produce the equivalent text in the 
error message, then that's fine with me:

Did you mean 'print("message", file=sys.stderr)'?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.x/builds/22/steps/test/logs/stdio

0:00:12 [  7/405/1] test_winconsoleio failed
beginning 6 repetitions
123456
..
test_winconsoleio leaked [43, 43, 43] references, sum=129

--
components: Tests, Windows
messages: 295445
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] test_winconsoleio leaks references
type: resource usage
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

The following code leaks one reference:

f = _io._WindowsConsoleIO('CONIO$', 'r')
f.close()
f = None

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2070

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

With https://github.com/python/cpython/pull/2003 test_winconsoleio doesn't leak 
anymore.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset d52aa31378ae43e044a300edfe8285954c167216 by Victor Stinner in 
branch 'master':
bpo-30418: Popen.communicate() always ignore EINVAL (#2002)
https://github.com/python/cpython/commit/d52aa31378ae43e044a300edfe8285954c167216


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2071

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2072

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2073

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29512] regrtest refleak: implement bisection feature

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Updated script: support Windows, fix cmdline help.

--
Added file: http://bugs.python.org/file46933/bisect_test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29512] regrtest refleak: implement bisection feature

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:

Oops, I uploaded the wrong version. It should now work.

--
Added file: http://bugs.python.org/file46934/bisect_test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-08 Thread STINNER Victor

New submission from STINNER Victor:

The leak can be reproduced with the minimum attached test_os.py:

C:\haypo\python>PCbuild\amd64\python_d.exe -m test -R 3:3 test_os
Run tests sequentially
0:00:00 [1/1] test_os
beginning 6 repetitions
123456
..
test_os leaked [2, 2, 2] memory blocks, sum=6
test_os failed

1 test failed:
test_os

Total duration: 172 ms
Tests result: FAILURE

--
components: Tests, Windows
files: test_os.py
messages: 295451
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] os.spawn*() tests of test_os leak references on Windows
type: resource usage
versions: Python 3.7
Added file: http://bugs.python.org/file46935/test_os.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 29adc13bd797d9c9e7fcb893a7c49ce7f7ad388c by Victor Stinner in 
branch 'master':
bpo-30601: Fix a refleak in WindowsConsoleIO (#2003)
https://github.com/python/cpython/commit/29adc13bd797d9c9e7fcb893a7c49ce7f7ad388c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset df04c088493bdbc2defea5e225a94e9bdd8e759f by Victor Stinner in 
branch '3.5':
bpo-30418: Popen.communicate() always ignore EINVAL (#2002) (#2005)
https://github.com/python/cpython/commit/df04c088493bdbc2defea5e225a94e9bdd8e759f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2074

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-08 Thread STINNER Victor

STINNER Victor added the comment:


New changeset e5bdad2201de45c203037e59491e4fea56def56d by Victor Stinner in 
branch '2.7':
bpo-30418: Popen.communicate() always ignore EINVAL (#2002) (#2006)
https://github.com/python/cpython/commit/e5bdad2201de45c203037e59491e4fea56def56d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27645] Supporting native backup facility of SQLite

2017-06-08 Thread Lele Gaifax

Lele Gaifax added the comment:

Is there any chance this could be accepted for Python 3.7?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30601] [Windows] test_winconsoleio leaks references

2017-06-08 Thread Eryk Sun

Eryk Sun added the comment:

Segev included a fix for this leak in PR 1927 for bpo30555, but I suppose it's 
better to fix it separately.

--
nosy: +Segev Finer, eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




  1   2   >