[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-05-10 Thread Xiang Zhang

Xiang Zhang added the comment:

I can't reproduce the failure in anyway. :-( Could you do some investigation 
and give more info?

--

___
Python tracker 

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



[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-05-10 Thread wim glenn

wim glenn added the comment:

The test "test_help_non_breaking_spaces" from Zhang's commit fails on my 
platform (other 1563 tests in the module all pass).  

Interestingly, if running the entire test suite, it doesn't fail.  It's only 
when executing the test_argparse.py module directly that causes the failure.

I guess there is some mutable state, or the test doesn't entirely setup 
correctly.

--
nosy: +wim.glenn

___
Python tracker 

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



[issue30230] Move quick test in PyObject_IsSubClass outside of PyType_CheckExact guard

2017-05-10 Thread Jim Fasarakis-Hilliard

Jim Fasarakis-Hilliard added the comment:

> he said, "I'm not sure if this was placed inside there due to some wild 
> edge-case,"

As a new contributor, I'll always lean on the side of me not seeing something 
rather than confidently stating that something is definitely wrong. I'm new, 
the code-base is 20 years old and worked on by a dozen of experienced devs :-)

>  Does a "Not-A-Class" class which is not a subclass of itself (issubclass(C, 
> C) returns False) makes any sense?

I'm not sure. Apart from the performance impact, there's a behavioral 
discrepancy between isinstance and issubclass as you also stated. 

In isinstance, __instancecheck__ doesn't *always* get a chance to override the 
behavior. The `if type(inst) == Cls` [1] stops it before it gets a chance. 
In issubclass, __subclasscheck__ does override it:

class Meta(type):
def __instancecheck__(self, other):
print("invoked")
return False
def __subclasscheck__(self, other):
print("invoked")
return False

class Cls(metaclass=Meta):
pass

isinstance(Cls(), Cls)
True

issubclass(Cls, Cls)
invoked
False

So, I guess the question might be re-framed to: Is it guaranteed that 
__instancecheck__ and __subclasscheck__ are *always* called?

If yes: PyObject_IsInstance should be tweaked.
If no:  PyObject_IsSubclass should be tweaked.

p.s Should I maybe move this to python-dev?

[1]: https://github.com/python/cpython/blob/master/Objects/abstract.c#L2338

--

___
Python tracker 

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



[issue30339] test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for results" on x86 Windows7 3.x

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

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

0:26:29 [156/405/1] test_multiprocessing_main_handling failed
...
test_zipfile_compiled 
(test.test_multiprocessing_main_handling.ForkServerCmdLineTest) ... skipped 
"'forkserver' start method not available"
test_basic_script (test.test_multiprocessing_main_handling.SpawnCmdLineTest) 
... ok
test_basic_script_no_suffix 
(test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... FAIL
test_directory (test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
test_directory_compiled 
(test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
test_ipython_workaround 
(test.test_multiprocessing_main_handling.SpawnCmdLineTest) ... ok
...

==
FAIL: test_basic_script_no_suffix 
(test.test_multiprocessing_main_handling.SpawnCmdLineTest)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py",
 line 169, in test_basic_script_no_suffix
self._check_script(script_name)
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py",
 line 157, in _check_script
rc, out, err = assert_python_ok(*run_args, __isolated=False)
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\support\script_helper.py",
 line 147, in assert_python_ok
return _assert_python(True, *args, **env_vars)
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\support\script_helper.py",
 line 133, in _assert_python
err))
AssertionError: Process return code is 1
command line: 
['D:\\cygwin\\home\\db3l\\buildarea\\3.x.bolen-windows7\\build\\PCbuild\\win32\\python_d.exe',
 '-X', 'faulthandler', '-E', 'd:\\temp\\tmp3iu335w1\\script', 'spawn']

stdout:
---

---

stderr:
---
Traceback (most recent call last):

  File "d:\temp\tmp3iu335w1\script", line 34, in 

raise RuntimeError("Timed out waiting for results")

RuntimeError: Timed out waiting for results
---

--
Ran 39 tests in 81.399s

FAILED (failures=1, skipped=26)
test test_multiprocessing_main_handling failed

--
components: Tests, Windows
messages: 293470
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for 
results" 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



[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

Oh, test_regrtest still fails on x86 Windows XP VS9.0 2.7.

0:16:29 [283/402/1] test_regrtest failed
test test_regrtest failed -- multiple errors occurred; run in verbose mode for 
details

--

___
Python tracker 

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



[issue15526] test_startfile crash on Windows 7 AMD64

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

I backported the fix to Python 2.7 to fix bpo-30334.

--

___
Python tracker 

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



[issue30334] [Windows] support.rmtree() should retry on WindowsError: [Error 32] The process cannot access the file because it is being used by another process

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

My following backport fixed test_startfile on x86 Windows7 3.x, so I close the 
issue.

New changeset 3837d9797c14c13d170256143c841d29645e772a by Victor Stinner in 
branch '2.7':
bpo-15526: test_startfile changes the cwd (#1537)
https://github.com/python/cpython/commit/3837d9797c14c13d170256143c841d29645e772a

--
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



[issue30159] gdb autoloading python-gdb.py

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue30287] cpython and Clang Static Analyzer

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue30294] ./configure, pydebug and pymalloc

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue30097] Command-line option to suppress "from None" for debugging

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

See also my old PEP 490 -- Chain exceptions at C level, more or less abandonned 
:-p

--
nosy: +haypo, ncoghlan

___
Python tracker 

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



[issue30300] asyncio.Controller

2017-05-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On May 11, 2017, at 12:09 AM, STINNER Victor wrote:

>Why not starting by putting this class in a library to mature its API?

It's already part of aiosmtpd although not with the small amount of
generic-ness included here.  It's been useful and stable.  So this is just
refactoring out the aiosmtpd-ness of it.  It doesn't seem big enough to put
into yet another separate library.

--

___
Python tracker 

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



[issue30300] asyncio.Controller

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

I'm not sure that Controller is generic enough to be part of asyncio.

I'm not sure about the cancellation of all pending tasks on stop().

Why not starting by putting this class in a library to mature its API?

--
nosy: +haypo

___
Python tracker 

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



[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
title: “AttributeError: 'SimpleQueue' object has no attribute '_poll'” -> 
multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

___
Python tracker 

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



[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1640

___
Python tracker 

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



[issue15526] test_startfile crash on Windows 7 AMD64

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 3837d9797c14c13d170256143c841d29645e772a by Victor Stinner in 
branch '2.7':
bpo-15526: test_startfile changes the cwd (#1537)
https://github.com/python/cpython/commit/3837d9797c14c13d170256143c841d29645e772a


--
nosy: +haypo

___
Python tracker 

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



[issue30327] Version may be out of date in travis.yml

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

@Brett: What do you think?

--
nosy: +brett.cannon

___
Python tracker 

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



[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

p = subprocess.Popen(cmdline, close_fds=True,
+ stdin=subprocess.DEVNULL,
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL,
  start_new_session=True)

I don't think that always hiding output for any browser is a good idea.

xdg-open is supposed to be cross-desktop (GNOME, XFCE, KDE, etc.).

Maybe a better fix is to use "gio" if available, or fallback on xdg-open 
otherwise? But gio is specific to GNOME no? What if the user has GNOME and KDE 
installed?

--
nosy: +haypo

___
Python tracker 

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



[issue30338] LC_ALL=en_US + io.open() => LookupError: (osx)

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

> It may be an OSX specific bug?

Yes, on Linux, it "just works":

haypo@selma$ LC_ALL=en_US python2 -c 'import io; io.open("/dev/null")'
haypo@selma$ LC_ALL=en_USxxx python2 -c 'import io; io.open("/dev/null")'

In fact, you get ASCII encoding for these two locales:

haypo@selma$ LC_ALL=en_US python2 -c 'import locale; 
print(locale.getpreferredencoding(False))'
ANSI_X3.4-1968

haypo@selma$ LC_ALL=en_USxxx python2 -c 'import locale; 
print(locale.getpreferredencoding(False))'
ANSI_X3.4-1968

Internally, io.open() uses locale.getpreferredencoding(False) if you don't 
specify an encoding.

--
nosy: +haypo

___
Python tracker 

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



[issue30336] Pull Requests need more detail

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

> What is this pull request for?

I didn't notice so many PR without useful commit message (PR description). Not 
sure that it's useful.

> Include version updates if necessary.

I don't understand this part.

> Make sure you have signed the CLA agreement before continuing

We have a bot for that and the bot explains how to sign it, no?


> ### Reason to modify

I never saw such template in any other project. I'm not sure that we must 
require an exact format for new PR.


> ### Tests and reviews
> I have tested the code and it works.

While I run Linux and have Windows and FreeBSD VM, sometimes I'm lazy and rely 
on the CI. I consider that it's waste to burn CI CPUs sometimes :-) For 
example, it's not that easy to test a change specific to Windows on Python 2.7, 
but AppVeyor now runs tests for you!

--

@Jensen: I feel that you have useful hints for new contributors, but I suggest 
you to enhance the devguide instead of using a template.

--
nosy: +haypo

___
Python tracker 

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



[issue20491] textwrap: Non-breaking space not honored

2017-05-10 Thread Matej Cepl

Changes by Matej Cepl :


--
nosy: +mcepl

___
Python tracker 

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



[issue9850] obsolete macpath module dangerously broken and should be removed

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

> Bump, any update on what to do with this issue?

I updated and completed Chi Hsuan Yen's 3.6-deprecate-macpath.patch to create a 
pull request. I suggest to start by deprecating macpath in 3.7, and remove it 
from Python 3.8.

This module is here for years. macOS 9 is now dead, all macOS users migrated to 
OS X nowadays. I don't think that there is an urgency to *remove* macpath.

The title says "obsolete macpath module dangerously broken": is "dangerous" 
still up to date after the following fix?

New changeset 54987723de99 by Serhiy Storchaka in branch '3.4':
Issue #9850: Fixed macpath.join() for empty first component.  Patch by
https://hg.python.org/cpython/rev/54987723de99

If yes, we may also warn users in the macpath documentation that the module is 
dangerous, especially in the documentation of Python < 3.7.

--

___
Python tracker 

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



[issue9850] obsolete macpath module dangerously broken and should be removed

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1639

___
Python tracker 

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



[issue30338] LC_ALL=en_US + io.open() => LookupError: (osx)

2017-05-10 Thread Anthony Sottile

New submission from Anthony Sottile:

Originally seen here: https://github.com/Microsoft/vscode/issues/26227

```
$ LC_ALL=en_US python -c 'import io; io.open("/dev/null")'
Traceback (most recent call last):
  File "", line 1, in 
LookupError: unknown encoding: 
```

Admittedly, that `LC_ALL` looks malformed (should be en_US.UTF-8), but given 
this works on linux:

```
$ env -i LC_ALL=en_US python -c 'import io; io.open("/dev/null")'
$
```

It may be an OSX specific bug?

I've only tagged py27 + py36 because I did not have a build toolchain available 
to try on master, though I imagine it is reproducible there as well.

--
components: Library (Lib), macOS
messages: 293457
nosy: Anthony Sottile, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: LC_ALL=en_US + io.open() => LookupError: (osx)
type: crash
versions: Python 2.7, Python 3.6

___
Python tracker 

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



[issue30322] PyObject_GetIter does not behave as documented on dict objects

2017-05-10 Thread Sam De Meyer

Sam De Meyer added the comment:

You seem to be right, my object was lacking the keys method.

Please excuse me for the false alarm, and thanks for pointing it out.

--
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



[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-10 Thread desbma

desbma added the comment:

Ping

--

___
Python tracker 

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



[issue17188] Document 'from None' in raise statement doc.

2017-05-10 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Would any of the original authors be able to prepare a PR for this?  Thanks.

--
nosy: +csabella

___
Python tracker 

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



[issue30337] Vague wording of pkgutil.walk_packages parameter 'prefix'

2017-05-10 Thread Sam Silberstein

New submission from Sam Silberstein:

Hi there! 

This is my first submission to the bug tracker, so I apologize if I'm missing 
some formatting here.

I've found what's either vague documentation for the 'prefix' parameter of 
`pgkutil.walk_packages` or a bug. The method implies that it will only import 
submodules of the provided path, but if the prefix parameter is not filled, 
this method will import a module with the same name from outside the path -- so 
long as it exists in `sys.modules`. I'm unsure if this is due to the 
documentation not specifying that prefix should always be used when path is 
set, or if this is a bug (I can provide a fix if it's a bug).

Steps to reproduce:

Create a directory with a nested package with the same name as a package 
outside that directory, e.g.:

|_ test1
  |_ __init__.py
  |_ should_not_be_included.py
|_ test2
  |_ test1
|_ __init__.py
|_ test1
  |_ __init__.py
  |_ should_be_included.py

`list(pkgutil.walk_packages('test2'))` will contain 'should_not_be_included.py' 
instead of 'should_be_included.py'.

Thank you!

Sam Silberstein

--
assignee: docs@python
components: Documentation
messages: 293453
nosy: docs@python, smsilb
priority: normal
severity: normal
status: open
title: Vague wording of pkgutil.walk_packages parameter 'prefix'
type: behavior
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



[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-10 Thread Nathaniel Smith

Nathaniel Smith added the comment:

@Jonathan: Even 3.6.1 was careful to retain compatibility with code built by 
3.6.0. And your proposed 3.6.1-patched will generate binaries equivalent to the 
ones 3.6.0 generates. So I don't think you need to worry; 3.6.2 is not going to 
add a new and worse compatibility break, which is what it would take for your 
proposal to cause a problem. In fact, your 3.6.1-patched is equivalent to what 
I think 3.6.2 should do. I say go for it; patching 3.6.1 seems like a good 
solution.

--

___
Python tracker 

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



[issue25652] collections.UserString.__rmod__() raises NameError

2017-05-10 Thread Jonathan Goble

Jonathan Goble added the comment:

I would prefer to keep __rmod__ and fix the bug, given that the use case I 
described above would otherwise create an inconsistency in subclasses, which 
would be able to easily extend __mod__ by calling super(), but would be forced 
to fully implement __rmod__ themselves.

That said, I will defer to those who are more experienced here.

--

___
Python tracker 

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



[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-05-10 Thread Berker Peksag

Berker Peksag added the comment:

> Is it to validate that we have bugs? :)

More or less, yes. Since the problem is not in the library code and the tests 
are not completely useless, using @unittest.expectedFailure might be a better 
short term solution than skipping or removing them (at least we are not going 
to forget them :))

Yet another alternative is to tweak test_logincapa_with_client_certfile to just 
check for DeprecationWarning. See 
https://github.com/python/cpython/pull/1419/files#r115050499 for details.

--

___
Python tracker 

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



[issue30336] Pull Requests need more detail

2017-05-10 Thread Brett Cannon

Brett Cannon added the comment:

I'm not sure if this is going to be useful enough to force all contributors to 
deal with. Justification for a change should be on bugs.python.org and that's 
mentioned in the CONTRIBUTING.md guidelines. As for testing, the 
Travis/AppVeyor failures should communicate that. And for specifying the issue 
number, there's a status check for that to help communicate it.

I'll let other core devs comment, but while I appreciate what Jensen is trying 
to help with, I don't think the template helps enough to justify forcing every 
contributor to have to deal with it.

You can also bring this up on the core-workflow mailing list, Jensen, if you 
want to discuss it there.

--
nosy: +brett.cannon
priority: normal -> low

___
Python tracker 

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



[issue30332] Errors that aren't actually defined are purple in the IDLE

2017-05-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

3.4 only gets security fixes.  There is no problem for me in 3.5.3.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
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



[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
status: open -> closed

___
Python tracker 

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



[issue30336] Pull Requests need more detail

2017-05-10 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1638

___
Python tracker 

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



[issue30336] Pull Requests need more detail

2017-05-10 Thread Jensen Taylor

New submission from Jensen Taylor:

Made a PR for this

--
messages: 293447
nosy: Jensen Taylor
priority: normal
severity: normal
status: open
title: Pull Requests need more detail
type: enhancement

___
Python tracker 

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



[issue30335] Document deprecated alias of assertNotRegex

2017-05-10 Thread Marco Buttu

Marco Buttu added the comment:

Hi Jim, I think assertNotRegexpMatches has never been introduced:

https://docs.python.org/3/whatsnew/3.1.html
https://docs.python.org/3/whatsnew/3.2.html

That is why there is no reference in the documentation about that.  I also 
executed a test with Python 3.1 and 3.2. and I found that there is no 
assertNotRegexpMatches assertion available.

--
nosy: +marco.buttu

___
Python tracker 

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



[issue30332] Errors that aren't actually defined are purple in the IDLE

2017-05-10 Thread Jensen Taylor

Jensen Taylor added the comment:

I found this bug in python 3.4.1 and I believeit was a problem in 3.5.2

--
versions: +Python 3.4, Python 3.5

___
Python tracker 

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



[issue30332] Errors that aren't actually defined are purple in the IDLE

2017-05-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

You neglected to say which version of Python you used.  2.7? 3.2? When I type 
the following in 3.5+ on Win10,
>>> IOError, KeyError, PermissionError, int, list, FileNotFoundError
all the names have the same builtins highlight.  In 2.7 (and early 3.x), 
PermissionError and FileNotFoundError did not exist as builtins and should not 
get the hightlight.

--
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue9850] obsolete macpath module dangerously broken and should be removed

2017-05-10 Thread Jim Fasarakis-Hilliard

Jim Fasarakis-Hilliard added the comment:

Bump, any update on what to do with this issue?

--
nosy: +Jim Fasarakis-Hilliard

___
Python tracker 

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



[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

> I'd suggest marking them with @unittest.expectedFailure as an alternative way 
> to move forward.

I don't understand the purpose of tests known to fail. Is it to validate that 
we have bugs? :)

--

___
Python tracker 

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



[issue30319] test_invalid_authentication() of test_imaplib: ConnectionResetError: [Errno 54] Connection reset by peer in shutdown() on AMD64 FreeBSD 9.x 3.6

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
title: test_invalid_authentication()  of test_imaplib: ConnectionResetError: 
[Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 3.6 -> 
test_invalid_authentication()  of test_imaplib: ConnectionResetError: [Errno 
54] Connection reset by peer in shutdown() on AMD64 FreeBSD 9.x 3.6

___
Python tracker 

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



[issue30320] test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 10.x Shared 3.6

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

The bug occurs randomly, since it's hard to say at this point if my change 
fixes it for real or not. I close the bug, but will reopen it if the bug occurs 
again.

But I'm confident that blocking the signal is "the right fix" for such unit 
test.

--
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



[issue30331] TestPOP3_TLSClass: socket.timeout: timed out on AMD64 FreeBSD 10.x Shared 3.x

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

I don't understand the following error, since DummyPOP3Handler constructor 
(__init__) ends with "self.tls_starting = False".

AttributeError: 'DummyPOP3Handler' object has no attribute 'tls_starting'

Maybe self.handle_read() is called during asynchat.async_chat.__init__(self, 
conn)? Is that even possible?

--

___
Python tracker 

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



[issue30319] test_invalid_authentication() of test_imaplib: ConnectionResetError: [Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 3.6

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

@Our SSL experts: any idea why sock.close() fails with "ConnectionResetError: 
[Errno 54] Connection reset by peer" in imaplib? Is that a new error? Should 
imaplib catch ConnectionResetError on sock.close()?

By the way, see also bpo-30329: I proposed a patch to catch the Windows socket 
error 10022 on shutdown() for poplib and imaplib SSL connections. No idea why 
this error only occurs on SSL connections.

--
nosy: +alex, christian.heimes, dstufft, janssen

___
Python tracker 

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



[issue27144] concurrent.futures.as_completed() memory inefficiency

2017-05-10 Thread Xiang Zhang

Xiang Zhang added the comment:

> Any update on this reviewing, patching, and then backporting to 2.7?

concurrent package was added in 3.2. How backport to 2.7? Nosy myself.

--
nosy: +xiang.zhang
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



[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-10 Thread Brett Cannon

Brett Cannon added the comment:

To be honest, I'm not excited by ./configure --enable-optimizations. I was 
happy with an explicit "make profile-opt".

The configure flag was added because not everything can be enabled just in the 
Makefile and so that people have a single flag to set to turn on any and all 
optimizations that work consistently across OSs (it used to be LTO+PGO until we 
discovered how universally broken LTO seems to be).

--

___
Python tracker 

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



[issue30329] test_imaplib.test_login_cram_md5(): OSError: [WinError 10022] An invalid argument was supplied on AMD64 Windows8.1 Non-Debug 3.6

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1637

___
Python tracker 

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



[issue30330] test_socket.test_idna(): socket.gaierror: [Errno 11001] getaddrinfo failed on AMD64 Windows10 3.6

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

I checked the last 50 builds of AMD64 Windows10 3.5, AMD64 Windows10 3.6 and 
AMD64 Windows10 3.x (total: 150 builds): the bug only occurred once.

http://buildbot.python.org/all/builders/AMD64%20Windows10%203.6/builds/356/

--

___
Python tracker 

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



[issue27144] concurrent.futures.as_completed() memory inefficiency

2017-05-10 Thread Mark DePristo

Mark DePristo added the comment:

Any update on this reviewing, patching, and then backporting to 2.7? We've just 
run into the exact same issue here in Google using a ThreadPoolExecutor.map 
call growing memory usage without bounds due to the Future holding onto its 
result even after being returned from the map call. There's a more specific 
patch possible for just map() itself, but this more general one seems like it'd 
be better.

--
nosy: +Mark DePristo

___
Python tracker 

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



[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-10 Thread Jonathan Helmus

Jonathan Helmus added the comment:

In Anaconda we ship both Python 3.6.0 and 3.6.1 and have run into this issue 
when building packages with 3.6.1 and importing them on 3.6.0.  We are 
discussing adding #undef PySlice_GetIndicesEx to the Python.h we ship with 
Python 3.6.1.  From the discussion here this seems like a possible solution but 
we are worried about ABI compatibility with future releases in the 3.6 branch.  
Is there a consensus on how this will be addressed in 3.6.2?

--
nosy: +Jonathan Helmus

___
Python tracker 

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



[issue30334] [Windows] support.rmtree() should retry on WindowsError: [Error 32] The process cannot access the file because it is being used by another process

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

> See http://bugs.python.org/issue15526

Oh, thanks for the hint :-)

I proposed a "backport" (modified for 2.7): 
https://github.com/python/cpython/pull/1537

--

___
Python tracker 

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



[issue15526] test_startfile crash on Windows 7 AMD64

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1636

___
Python tracker 

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



[issue30334] [Windows] support.rmtree() should retry on WindowsError: [Error 32] The process cannot access the file because it is being used by another process

2017-05-10 Thread Jeremy Kloth

Jeremy Kloth added the comment:

See http://bugs.python.org/issue15526

--

___
Python tracker 

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



[issue30325] Buildbot: send email notifications to buildbot-status@

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

Zachary updated the buildbot Git repository to get the mail.py fix.

I changed the email address to buildbot-sta...@python.org:
https://github.com/python/buildmaster-config/pull/5

Let's see how things are going.

--

___
Python tracker 

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



[issue30335] Document deprecated alias of assertNotRegex

2017-05-10 Thread Jim Fasarakis-Hilliard

Changes by Jim Fasarakis-Hilliard :


--
pull_requests: +1635

___
Python tracker 

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



[issue30335] Document deprecated alias of assertNotRegex

2017-05-10 Thread Jim Fasarakis-Hilliard

New submission from Jim Fasarakis-Hilliard:

The assertNotRegexpMatches name was deprecated in 3.2 in favor of 
assertNotRegex [1]. This is currently not documented in unittest.rst.

[1]: 
https://github.com/python/cpython/commit/ed3a7d2d601ce1e65b0bacf24676440631158ec8

--
components: Tests
messages: 293430
nosy: Jim Fasarakis-Hilliard
priority: normal
severity: normal
status: open
title: Document deprecated alias of assertNotRegex
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



[issue30334] [Windows] support.rmtree() should retry on WindowsError: [Error 32] The process cannot access the file because it is being used by another process

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

For a very generic "retry" library, see https://pypi.python.org/pypi/tenacity

But I don't think that we need such advanced library, a simple loop should do 
the trick ;-)

--

___
Python tracker 

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



[issue30334] [Windows] support.rmtree() should retry on WindowsError: [Error 32] The process cannot access the file because it is being used by another process

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

test_startfile uses a weak time.sleep(0.1) to wait until the process started by 
os.startfile() completes. Instead of a sleep, can't support.rmtree() retry on 
"WindowsError: [Error 32] The process cannot access the file because it is 
being used by another process" error? For example, retry every 100 ms during 10 
seconds?

It's easy to reproduce the bug on Python 2.7: just remove the time.sleep() call 
in tests.

http://buildbot.python.org/all/builders/x86%20Windows7%202.7/builds/145/steps/test/logs/stdio

0:23:42 [363/402/1] test_startfile crashed

[1, 5.63811444092]
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\runpy.py", 
line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
  File "D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\runpy.py", 
line 72, in _run_code
exec code in run_globals
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\regrtest.py", 
line 1877, in 
main_in_temp_cwd()
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\regrtest.py", 
line 1864, in main_in_temp_cwd
main()
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\contextlib.py", 
line 35, in __exit__
self.gen.throw(type, value, traceback)
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\support\__init__.py",
 line 769, in temp_cwd
rmtree(name)
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\support\__init__.py",
 line 293, in rmtree
_rmtree(path)
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\support\__init__.py",
 line 249, in _rmtree
_waitfor(lambda p: _force_run(p, os.rmdir, p), path)
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\support\__init__.py",
 line 202, in _waitfor
func(pathname)
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\support\__init__.py",
 line 249, in 
_waitfor(lambda p: _force_run(p, os.rmdir, p), path)
  File 
"D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\test\support\__init__.py",
 line 197, in _force_run
return func(*args)
WindowsError: [Error 32] The process cannot access the file because it is being 
used by another process: 
'D:\\cygwin\\home\\db3l\\buildarea\\2.7.bolen-windows7\\build\\build\\test_python_2944'

--

If it's too complex to implement a retry (too complex? really?), an obvious 
hack is to increase the sleep in test_startfile.py from 100 ms to 200 ms...

--
components: Tests, Windows
messages: 293428
nosy: haypo, jkloth, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] support.rmtree() should retry on WindowsError: [Error 32] The 
process cannot access the file because it is being used by another process
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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-05-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Yes, PR 1535 is indeed linked to this issue, if you're reading it from the bug 
tracker.

The pull request number you see from the notification email (+1634) refers to 
the pull_request item in the bug tracker 
(https://bugs.python.org/pull_request1634).

This number is different than the pull request # on GitHub.

Hope this clarifies it :)

See also discussions about it:
https://github.com/python/core-workflow/issues/35
http://psf.upfronthosting.co.za/roundup/meta/issue624
(I was confused about it too)

--
nosy: +Mariatta
stage: needs patch -> patch review
versions: +Python 3.7 -Python 3.4

___
Python tracker 

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



[issue30333] test_multiprocessing_forkserver: poll() failed on AMD64 FreeBSD CURRENT Non-Debug 3.5

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.5/builds/97/steps/test/logs/stdio

test_connection 
(test.test_multiprocessing_forkserver.WithThreadsTestConnection) ... FAIL

...

Dangling threads: {}

==
FAIL: test_connection 
(test.test_multiprocessing_forkserver.WithThreadsTestConnection)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.5.koobs-freebsd-current.nondebug/build/Lib/test/_test_multiprocessing.py",
 line 2359, in test_connection
self.assertEqual(poll(TIMEOUT1), True)
AssertionError: False != True

--
Ran 272 tests in 124.653s

FAILED (failures=1, skipped=16)
Warning -- threading._dangling was modified by test_multiprocessing_forkserver
  Before: <_weakrefset.WeakSet object at 0x80493d080>
  After:  <_weakrefset.WeakSet object at 0x804956160> 
test test_multiprocessing_forkserver failed[105/398/1] 
test_multiprocessing_forkserver

--
components: Tests
messages: 293426
nosy: davin, haypo
priority: normal
severity: normal
status: open
title: test_multiprocessing_forkserver: poll() failed on AMD64 FreeBSD CURRENT 
Non-Debug 3.5
versions: Python 3.5

___
Python tracker 

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



[issue28787] Out of tree --with--dtrace builds fail with a traceback

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset f6eae5bf1c5d7b83e5d5bdbecfff928e478c1cfd by Victor Stinner 
(stratakis) in branch 'master':
bpo-28787: Fix out of tree --with-dtrace builds (#135)
https://github.com/python/cpython/commit/f6eae5bf1c5d7b83e5d5bdbecfff928e478c1cfd


--
nosy: +haypo

___
Python tracker 

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



[issue30332] Errors that aren't actually defined are purple in the IDLE

2017-05-10 Thread Jensen Taylor

New submission from Jensen Taylor:

Things like PermissionError and FileNotFoundError that come under IOError, or 
OSError in Python 3.7

--
assignee:  -> terry.reedy
components: +IDLE, Windows
nosy: +paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
title: Errors that aren't actually definde -> Errors that aren't actually 
defined are purple in the IDLE
versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5, 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



[issue30332] Errors that aren't actually definde

2017-05-10 Thread Jensen Taylor

Changes by Jensen Taylor :


--
nosy: Jensen Taylor
priority: normal
severity: normal
status: open
title: Errors that aren't actually definde

___
Python tracker 

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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-05-10 Thread Florian Bruhin

Florian Bruhin added the comment:

https://github.com/python/cpython/pull/1535 seems to be the correct PR, not 
1634.

--

___
Python tracker 

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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-05-10 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +1634

___
Python tracker 

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



[issue30230] Move quick test in PyObject_IsSubClass outside of PyType_CheckExact guard

2017-05-10 Thread Raymond Hettinger

Raymond Hettinger added the comment:

My point was that it isn't wise to propose PRs for code you don't fully 
understand (he said, "I'm not sure if this was placed inside there due to some 
wild edge-case,").

--

___
Python tracker 

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



[issue30331] TestPOP3_TLSClass: socket.timeout: timed out on AMD64 FreeBSD 10.x Shared 3.x

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

See also bpo-30328 (test_ssl), bpo-30315 (test_ftplib) and bpo-30319 
(test_imaplib).

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/246/steps/test/logs/stdio

0:07:58 load avg: 3.30 [242/405/1] test_poplib failed -- running: test_datetime 
(139 sec)
test_apop (test.test_poplib.TestPOP3Class) ... ok
test_capa (test.test_poplib.TestPOP3Class) ... ok
test_dele (test.test_poplib.TestPOP3Class) ... ok
test_exceptions (test.test_poplib.TestPOP3Class) ... ok
test_getwelcome (test.test_poplib.TestPOP3Class) ... ok
test_list (test.test_poplib.TestPOP3Class) ... ok
test_noop (test.test_poplib.TestPOP3Class) ... ok
test_pass_ (test.test_poplib.TestPOP3Class) ... ok
test_quit (test.test_poplib.TestPOP3Class) ... ok
test_retr (test.test_poplib.TestPOP3Class) ... ok
test_rpop (test.test_poplib.TestPOP3Class) ... ok
test_stat (test.test_poplib.TestPOP3Class) ... ok
test_stls (test.test_poplib.TestPOP3Class) ... ok
test_stls_capa (test.test_poplib.TestPOP3Class) ... ok
test_stls_context (test.test_poplib.TestPOP3Class) ... ok
test_too_long_lines (test.test_poplib.TestPOP3Class) ... ok
test_top (test.test_poplib.TestPOP3Class) ... ok
test_uidl (test.test_poplib.TestPOP3Class) ... ok
test_user (test.test_poplib.TestPOP3Class) ... ok
test_utf8 (test.test_poplib.TestPOP3Class) ... ok
test_utf8_raises_if_unsupported (test.test_poplib.TestPOP3Class) ... ok
testTimeoutDefault (test.test_poplib.TestTimeouts) ... ok
testTimeoutNone (test.test_poplib.TestTimeouts) ... ok
testTimeoutValue (test.test_poplib.TestTimeouts) ... ok
test__all__ (test.test_poplib.TestPOP3_SSLClass) ... ok
test_apop (test.test_poplib.TestPOP3_SSLClass) ... ok
test_capa (test.test_poplib.TestPOP3_SSLClass) ... ok
test_context (test.test_poplib.TestPOP3_SSLClass) ... ok
test_dele (test.test_poplib.TestPOP3_SSLClass) ... ok
test_exceptions (test.test_poplib.TestPOP3_SSLClass) ... ok
test_getwelcome (test.test_poplib.TestPOP3_SSLClass) ... ok
test_list (test.test_poplib.TestPOP3_SSLClass) ... ok
test_noop (test.test_poplib.TestPOP3_SSLClass) ... ok
test_pass_ (test.test_poplib.TestPOP3_SSLClass) ... ok
test_quit (test.test_poplib.TestPOP3_SSLClass) ... ok
test_retr (test.test_poplib.TestPOP3_SSLClass) ... ok
test_rpop (test.test_poplib.TestPOP3_SSLClass) ... ok
test_stat (test.test_poplib.TestPOP3_SSLClass) ... ok
test_stls (test.test_poplib.TestPOP3_SSLClass) ... ok
test_stls_capa (test.test_poplib.TestPOP3_SSLClass) ... ok
test_stls_context (test.test_poplib.TestPOP3_SSLClass) ... ok
test_too_long_lines (test.test_poplib.TestPOP3_SSLClass) ... ok
test_top (test.test_poplib.TestPOP3_SSLClass) ... ok
test_uidl (test.test_poplib.TestPOP3_SSLClass) ... ok
test_user (test.test_poplib.TestPOP3_SSLClass) ... ok
test_utf8 (test.test_poplib.TestPOP3_SSLClass) ... ok
test_utf8_raises_if_unsupported (test.test_poplib.TestPOP3_SSLClass) ... ok
test_apop (test.test_poplib.TestPOP3_TLSClass) ... ok
test_capa (test.test_poplib.TestPOP3_TLSClass) ... ok
test_dele (test.test_poplib.TestPOP3_TLSClass) ... ok
test_exceptions (test.test_poplib.TestPOP3_TLSClass) ... ok
test_getwelcome (test.test_poplib.TestPOP3_TLSClass) ... ok
test_list (test.test_poplib.TestPOP3_TLSClass) ... ERROR
test_noop (test.test_poplib.TestPOP3_TLSClass) ... Exception in thread 
Thread-54:
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/threading.py", 
line 916, in _bootstrap_inner
self.run()
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_poplib.py", 
line 222, in run
asyncore.loop(timeout=0.1, count=1)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 
line 207, in loop
poll_fun(timeout, map)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 
line 150, in poll
read(obj)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 
line 87, in read
obj.handle_error()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 
line 83, in read
obj.handle_read_event()
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 
line 423, in handle_read_event
self.handle_read()
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_poplib.py", 
line 188, in handle_read
if self.tls_starting:
AttributeError: 'DummyPOP3Handler' object has no attribute 'tls_starting'

Exception in thread Thread-53:
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/threading.py", 
line 916, in _bootstrap_inner
self.run()
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_poplib.py", 
line 222, in run
asyncore.loop(timeout=0.1, count=1)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 
line 207, in loop
poll_fun(timeout, map)
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncore.py", 

[issue30323] concurrent.futures.Executor.map() consumes all memory when big generators are used

2017-05-10 Thread Xiang Zhang

Xiang Zhang added the comment:

IIUC, the meaning of executor.map() is to run the tasks concurrently. So you 
have to loop the iterable ahead to submit all the tasks. If you make it a 
generator comprehension, you are actually submitting a task and then getting 
the result. So you are executing the tasks sequentially. Doesn't it violate the 
intention and meaning of executor.map()?

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue16865] ctypes arrays >=2GB in length causes exception

2017-05-10 Thread David Heffernan

David Heffernan added the comment:

Erik,

As you can no doubt guess, this is related to the questions I have been asking 
on SO that you have so expertly been answering. Thank you!

When I solved the latest problem, getting at the internal buffer of a 
bytearray, I used the code in my previous comment, which came from a comment 
(now deleted) of yours to the question.

Looking at this more closely I realise that, as you said in your answer, the 
array length is not important for my specific needs, to it is fine to use zero. 
That side steps this issue completely. Thanks again.

--

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
pull_requests: +1633

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

OK thanks. Fix coming.

--

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Warnings are not shown when the source is already compiled to .pyc file.

$ find -name '*.py[co]' -exec rm '{}' +
$ ./python -Wa -m test test_unittest
Run tests sequentially
0:00:00 load avg: 0.54 [1/1] test_unittest
/home/serhiy/py/cpython/Lib/unittest/test/test_assertions.py:228: 
DeprecationWarning: invalid escape sequence \(
  ["^1 != 2 within 7 places \(1 difference\)$", "^oops$",
/home/serhiy/py/cpython/Lib/unittest/test/test_assertions.py:229: 
DeprecationWarning: invalid escape sequence \(
  "^1 != 2 within 7 places \(1 difference\)$",
/home/serhiy/py/cpython/Lib/unittest/test/test_assertions.py:230: 
DeprecationWarning: invalid escape sequence \(
  "^1 != 2 within 7 places \(1 difference\) : oops$"])
1 test OK.

Total duration: 5 sec
Tests result: SUCCESS

--

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

$ ./python -Wa Lib/unittest/test/test_assertions.py
Lib/unittest/test/test_assertions.py:228: DeprecationWarning: invalid escape 
sequence \(
  ["^1 != 2 within 7 places \(1 difference\)$", "^oops$",
Lib/unittest/test/test_assertions.py:229: DeprecationWarning: invalid escape 
sequence \(
  "^1 != 2 within 7 places \(1 difference\)$",
Lib/unittest/test/test_assertions.py:230: DeprecationWarning: invalid escape 
sequence \(
  "^1 != 2 within 7 places \(1 difference\) : oops$"])
...
--
Ran 35 tests in 0.052s

OK

--

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Mmm I can't see them. Am I supposed to enable this kind of warning somehow?

--

___
Python tracker 

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



[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-10 Thread Tomas Orsava

Tomas Orsava added the comment:

> Oh wait, I expected that "make test" would build Python with PGO, but it
> doesn't anymore. Would it be possible to change the Makefile to make sure
> that "make python" (on Linux, "make python.exe" on macOS) would build Python
> using PGO?
>
> I tried to hack something, but I'm lost in dependencies... "make profile-opt"
> runs "$(MAKE) build_all_generate_profile" which runs "$(MAKE) build_all
> CFLAGS_NODIST=..." and build_all depends on "$(BUILDPYTHON)".
>
> I'm not sure that it's possible to make everything automatic because of the
> high number of targets and dependencies.

In addition, profile-opt would have to rewritten to test whether there's
already an interpreter built with PGO. And if there is, regenerate it only if
the main target is `all` or `profile-opt`, but not when someone runs `make
test`, `make install`, etc.

It's maybe too radical, but we could change it so that if you run `make test`, 
`make install` and the like and there's no interpreter built already to test or 
install, the user is told to run `make` first.

--

___
Python tracker 

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



[issue30330] test_socket.test_idna(): socket.gaierror: [Errno 11001] getaddrinfo failed on AMD64 Windows10 3.6

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

In the same build, a retry of the DNS request later succeeded:

test_idna (test.test_socket.GeneralModuleTests) ... ok

--

___
Python tracker 

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



[issue30330] test_socket.test_idna(): socket.gaierror: [Errno 11001] getaddrinfo failed on AMD64 Windows10 3.6

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/AMD64%20Windows10%203.6/builds/356/steps/test/logs/stdio

==
ERROR: test_idna (test.test_socket.GeneralModuleTests)
--
Traceback (most recent call last):
  File "D:\buildarea\3.6.bolen-windows10\build\lib\test\test_socket.py", line 
1359, in test_idna
socket.getaddrinfo(domain,0,socket.AF_UNSPEC,socket.SOCK_STREAM)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\socket.py", line 743, in 
getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

--

--
components: Tests, Windows
keywords: buildbot
messages: 293412
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_socket.test_idna(): socket.gaierror: [Errno 11001] getaddrinfo 
failed on AMD64 Windows10 3.6
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



[issue30329] test_imaplib.test_login_cram_md5(): OSError: [WinError 10022] An invalid argument was supplied on AMD64 Windows8.1 Non-Debug 3.6

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

See also bpo-30319: test_invalid_authentication()  of test_imaplib: 
ConnectionResetError: [Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 
3.6.

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Non-Debug%203.6/builds/375/steps/test/logs/stdio

test_login_cram_md5 (test.test_imaplib.ThreadedNetworkedTestsSSL) ... creating 
server
server created
ADDR = ('127.0.0.1', 0)
CLASS = 
HDLR = .AuthHandler'>
server running
SENT: b'* OK IMAP4rev1'
GOT: b'PJGL0 CAPABILITY'
SENT: b'* CAPABILITY IMAP4rev1 LOGINDISABLED AUTH=CRAM-MD5'
SENT: b'PJGL0 OK CAPABILITY completed'
GOT: b'PJGL1 AUTHENTICATE CRAM-MD5'
SENT: b'+ PDE4OTYuNjk3MTcwOTUyQHBvc3RvZmZpY2UucmVzdG9uLm1jaS5uZXQ='
GOT: b'dGltIGYxY2E2YmU0NjRiOWVmYTFjY2E2ZmZkNmNmMmQ5ZjMy'
SENT: b'PJGL1 OK CRAM-MD5 successful'
GOT: b'PJGL2 LOGOUT'
SENT: b'* BYE IMAP4ref1 Server logging out'
SENT: b'PJGL2 OK LOGOUT completed'
waiting for server
done
ERROR

==
ERROR: test_login_cram_md5 (test.test_imaplib.ThreadedNetworkedTestsSSL)
--
Traceback (most recent call last):
  File 
"D:\buildarea\3.6.ware-win81-release\build\lib\test\support\__init__.py", line 
2035, in decorator
return func(*args)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\test\test_imaplib.py", 
line 796, in test_login_cram_md5
self.assertEqual(ret, "OK")
  File "D:\buildarea\3.6.ware-win81-release\build\lib\contextlib.py", line 89, 
in __exit__
next(self.gen)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\test\test_imaplib.py", 
line 567, in reaped_pair
client.logout()
  File "D:\buildarea\3.6.ware-win81-release\build\lib\imaplib.py", line 622, in 
logout
self.shutdown()
  File "D:\buildarea\3.6.ware-win81-release\build\lib\imaplib.py", line 320, in 
shutdown
self.sock.shutdown(socket.SHUT_RDWR)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\ssl.py", line 1040, in 
shutdown
socket.shutdown(self, how)
OSError: [WinError 10022] An invalid argument was supplied

--
Ran 95 tests in 6.890s

FAILED (errors=1, skipped=4)
test test_imaplib failed

--
assignee: christian.heimes
components: SSL, Tests, Windows
keywords: buildbot
messages: 293411
nosy: christian.heimes, haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_imaplib.test_login_cram_md5(): OSError: [WinError 10022] An invalid 
argument was supplied on AMD64 Windows8.1 Non-Debug 3.6
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



[issue30315] test_ftplib.TestTLS_FTPClass: "[Errno 54] Connection reset by peer" on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

See also bpo-30328 (test_ssl) and bpo-30319 (test_imaplib).

--

___
Python tracker 

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



[issue30319] test_invalid_authentication() of test_imaplib: ConnectionResetError: [Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 3.6

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

See also bpo-30328 (test_ssl) and bpo-30315 (test_ftplib).

--

___
Python tracker 

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



[issue30328] test_ssl.test_connect_with_context(): ConnectionResetError on AMD64 FreeBSD 9.x 3.6

2017-05-10 Thread STINNER Victor

New submission from STINNER Victor:

See also bpo-30315 (test_ftplib) and bpo-30319 (test_imaplib).

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.6/builds/131/steps/test/logs/stdio

test_connect_with_context (test.test_ssl.SimpleBackgroundTests) ...  server:  
new connection from ('127.0.0.1', 53510)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
Test server failure:
Traceback (most recent call last):
   File 
"/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/test/test_ssl.py", line 
1944, in run
self.close()
   File 
"/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/test/test_ssl.py", line 
1919, in close
self.sslconn.close()
   File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/socket.py", 
line 417, in close
self._real_close()
   File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1052, in _real_close
socket._real_close(self)
   File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/socket.py", 
line 411, in _real_close
_ss.close(self)
 ConnectionResetError: [Errno 54] Connection reset by peer
ERROR

...

==
ERROR: test_connect_with_context (test.test_ssl.SimpleBackgroundTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/test/test_ssl.py", line 
1541, in test_connect_with_context
s.connect(self.server_addr)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1093, in connect
self._real_connect(addr, False)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1084, in _real_connect
self.do_handshake()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1061, in do_handshake
self._sslobj.do_handshake()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
683, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 54] Connection reset by peer

--
Ran 127 tests in 12.751s

FAILED (errors=1, skipped=7)
test test_ssl failed

--
components: Tests
keywords: buildbot
messages: 293408
nosy: haypo
priority: normal
severity: normal
status: open
title: test_ssl.test_connect_with_context(): ConnectionResetError on AMD64 
FreeBSD 9.x 3.6
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



[issue30316] test_default_timeout() of test_threading.BarrierTests: random failures on AMD64 FreeBSD CURRENT Debug 3.x

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

Full test output.

0:04:38 [ 86/405/1] test_thread failed -- running: test_multiprocessing_spawn 
(214 sec)
test_barrier (test.test_thread.BarrierTest) ... waiting for tasks to end
task 0 will run for 0us
task 0 entering 0
task 2 will run for 4us
task 2 entering 0
task 6 will run for 90us
task 4 will run for 15us
task 6 entering 0
task 1 will run for 7us
task 3 will run for 33us
task 5 will run for 85us
task 7 will run for 71us
task 7 entering 0
task 5 entering 0
task 9 will run for 45us
task 4 entering 0
task 8 will run for 62us
task 8 entering 0
task 1 entering 0
task 9 entering 0
task 3 entering 0
task 3 leaving barrier
task 3 will run for 15us
task 3 entering 1
task 0 leaving barrier
task 0 will run for 0us
task 0 entering 1
task 2 leaving barrier
task 2 will run for 98us
task 2 entering 1
task 6 leaving barrier
task 6 will run for 91us
task 7 leaving barrier
task 7 will run for 67us
task 6 entering 1
task 7 entering 1
task 4 leaving barrier
task 4 will run for 38us
task 4 entering 1
task 8 leaving barrier
task 8 will run for 84us
task 8 entering 1
task 5 leaving barrier
task 5 will run for 92us
task 5 entering 1
task 9 leaving barrier
task 9 will run for 1us
task 9 entering 1
task 1 leaving barrier
task 1 will run for 55us
task 1 entering 1
task 0 leaving barrier
task 0 will run for 0us
task 0 entering 2
task 9 leaving barrier
task 9 will run for 2us
task 2 leaving barrier
task 2 will run for 92us
task 9 entering 2
task 6 leaving barrier
task 6 will run for 43us
task 2 entering 2
task 7 leaving barrier
task 7 will run for 90us
task 6 entering 2
task 4 leaving barrier
task 4 will run for 1us
task 8 leaving barrier
task 8 will run for 20us
task 4 entering 2
task 8 entering 2
task 5 leaving barrier
task 5 will run for 86us
task 7 entering 2
task 3 leaving barrier
task 3 will run for 3us
task 5 entering 2
task 3 entering 2
task 1 leaving barrier
task 1 will run for 80us
task 1 entering 2
task 1 leaving barrier
task 0 leaving barrier
task 2 leaving barrier
task 9 leaving barrier
task 6 leaving barrier
task 8 leaving barrier
task 4 leaving barrier
task 7 leaving barrier
task 5 leaving barrier
task 3 leaving barrier
tasks done
ok
test_acquire_contended (test.test_thread.LockTests) ... ok
test_acquire_destroy (test.test_thread.LockTests) ... ok
test_acquire_release (test.test_thread.LockTests) ... ok
test_constructor (test.test_thread.LockTests) ... ok
test_different_thread (test.test_thread.LockTests) ... ok
test_locked_repr (test.test_thread.LockTests) ... ok
test_reacquire (test.test_thread.LockTests) ... ok
test_repr (test.test_thread.LockTests) ... ok
test_state_after_timeout (test.test_thread.LockTests) ... ok
test_thread_leak (test.test_thread.LockTests) ... ok
test_timeout (test.test_thread.LockTests) ... ok
test_try_acquire (test.test_thread.LockTests) ... ok
test_try_acquire_contended (test.test_thread.LockTests) ... ok
test_weakref_deleted (test.test_thread.LockTests) ... ok
test_weakref_exists (test.test_thread.LockTests) ... ok
test_with (test.test_thread.LockTests) ... ok
test_forkinthread (test.test_thread.TestForkInThread) ... ok
test__count (test.test_thread.ThreadRunningTests) ... ok
test_nt_and_posix_stack_size (test.test_thread.ThreadRunningTests) ... caught 
expected ValueError setting stack_size(4096)
successfully set stack_size(262144)
successfully set stack_size(1048576)
successfully set stack_size(0)
trying stack_size = (262144)
creating task 1
creating task 2
creating task 3
creating task 4
creating task 5
creating task 6
creating task 7
creating task 8
creating task 9
creating task 10
waiting for all tasks to complete
task 1 will run for 45us
task 2 will run for 22us
task 2 done
task 3 will run for 57us
task 4 will run for 61us
task 3 done
task 4 done
task 7 will run for 73us
task 9 will run for 46us
task 10 will run for 63us
task 8 will run for 71us
task 7 done
task 5 will run for 54us
task 6 will run for 6us
task 6 done
task 1 done
task 8 done
task 10 done
task 5 done
task 9 done
all tasks done
trying stack_size = (1048576)
creating task 1
creating task 2
creating task 3
creating task 4
creating task 5
creating task 6
creating task 7
creating task 8
creating task 9
creating task 10
waiting for all tasks to complete
task 1 will run for 74us
task 2 will run for 87us
task 4 will run for 76us
task 6 will run for 41us
task 3 will run for 23us
task 5 will run for 22us
task 2 done
task 9 will run for 0us
task 3 done
task 6 done
task 10 will run for 83us
task 4 done
task 8 will run for 35us
task 1 done
task 8 done
task 10 done
task 9 done
task 7 will run for 67us
task 5 done
task 7 done
all tasks done
ok
test_save_exception_state_on_error (test.test_thread.ThreadRunningTests) ... 
FAIL
test_stack_size (test.test_thread.ThreadRunningTests) ... ok
test_starting_threads (test.test_thread.ThreadRunningTests) ... creating task 1
creating task 2
creating task 3
creating task 4
creating task 5
creating task 6
creating task 7
creating task 8
creating task 9

[issue30316] test_default_timeout() of test_threading.BarrierTests: random failures on AMD64 FreeBSD CURRENT Debug 3.x

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

Another similar bug different exception in test_thread on AMD64 FreeBSD CURRENT 
Debug 3.6:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.6/builds/145/steps/test/logs/stdio


test_save_exception_state_on_error (test.test_thread.ThreadRunningTests) ... 
FAIL
test_stack_size (test.test_thread.ThreadRunningTests) ... ok
...

==
FAIL: test_save_exception_state_on_error (test.test_thread.ThreadRunningTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.6.koobs-freebsd-current/build/Lib/test/test_thread.py",
 line 148, in test_save_exception_state_on_error
self.assertIn("Traceback", stderr.getvalue())
AssertionError: 'Traceback' not found in ''

--
Ran 23 tests in 1.565s

FAILED (failures=1)
test test_thread failed

--

___
Python tracker 

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



[issue30319] test_invalid_authentication() of test_imaplib: ConnectionResetError: [Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 3.6

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
title: test_invalid_authentication()  of test_imaplib: random failure on AMD64 
FreeBSD 9.x 3.6 -> test_invalid_authentication()  of test_imaplib: 
ConnectionResetError: [Errno 54] Connection reset by peer on AMD64 FreeBSD 9.x 
3.6

___
Python tracker 

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



[issue30320] test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 10.x Shared 3.6

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset dab10f4f5b52c6de1aac3a8b5dc87d2eb0223a6c by Victor Stinner in 
branch '3.5':
[3.5] bpo-30320, bpo-25277: backport test_eintr enhancements from master to 3.5 
(#1532)
https://github.com/python/cpython/commit/dab10f4f5b52c6de1aac3a8b5dc87d2eb0223a6c


--

___
Python tracker 

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



[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset dab10f4f5b52c6de1aac3a8b5dc87d2eb0223a6c by Victor Stinner in 
branch '3.5':
[3.5] bpo-30320, bpo-25277: backport test_eintr enhancements from master to 3.5 
(#1532)
https://github.com/python/cpython/commit/dab10f4f5b52c6de1aac3a8b5dc87d2eb0223a6c


--

___
Python tracker 

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



[issue16865] ctypes arrays >=2GB in length causes exception

2017-05-10 Thread Eryk Sun

Eryk Sun added the comment:

In older versions of ctypes, before it was added to the standard library, the 
underlying length field was a C int, and CArrayType_new used the PyInt_AS_LONG 
macro. ctypes was added to the standard library in 2.5, by which time the 
length field is Py_ssize_t, but CArrayType_new still used the PyInt_AS_LONG 
macro. That's still the case in 2.7. Python 3 changed this to call 
PyLong_AsLongAndOverflow, but apparently Christian Heimes didn't consider 
fixing this properly to use Py_ssize_t:

https://hg.python.org/cpython/rev/612d8dea7f6c

David, maybe there's a workaround for your use case, if you can provide some 
more details.

--
nosy: +eryksun
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Changes by Xiang Zhang :


--
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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 05469fa1c05acf55bdca05db21822ecdd7f6487a by Xiang Zhang in branch 
'2.7':
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480)
https://github.com/python/cpython/commit/05469fa1c05acf55bdca05db21822ecdd7f6487a


--

___
Python tracker 

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



[issue29808] SyslogHandler: should not raise exception in constructor if connection fails

2017-05-10 Thread Vinay Sajip

Vinay Sajip added the comment:

> How can this be true?

Perhaps it didn't make the cut for that specific release? Seems to be in the 
3.5 branch OK.

--

___
Python tracker 

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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 639e295650a51894412c9d976958792010d3bcf8 by Xiang Zhang in branch 
'3.5':
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1530) (#1480)
https://github.com/python/cpython/commit/639e295650a51894412c9d976958792010d3bcf8


--

___
Python tracker 

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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 98b49a00d413972965044fd355be3b8482caa07c by Xiang Zhang in branch 
'3.6':
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) (#1529)
https://github.com/python/cpython/commit/98b49a00d413972965044fd355be3b8482caa07c


--

___
Python tracker 

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



[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1632

___
Python tracker 

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



[issue30320] test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 10.x Shared 3.6

2017-05-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1631

___
Python tracker 

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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +1630

___
Python tracker 

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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +1628

___
Python tracker 

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



[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +1629

___
Python tracker 

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



[issue25652] collections.UserString.__rmod__() raises NameError

2017-05-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think any solution is better than keeping a bug in the current code.

--

___
Python tracker 

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



[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-10 Thread STINNER Victor

STINNER Victor added the comment:

Oh wait, I expected that "make test" would build Python with PGO, but it 
doesn't anymore. Would it be possible to change the Makefile to make sure that 
"make python" (on Linux, "make python.exe" on macOS) would build Python using 
PGO?

I tried to hack something, but I'm lost in dependencies... "make profile-opt" 
runs "$(MAKE) build_all_generate_profile" which runs "$(MAKE) build_all 
CFLAGS_NODIST=..." and build_all depends on "$(BUILDPYTHON)".

I'm not sure that it's possible to make everything automatic because of the 
high number of targets and dependencies.

To be honest, I'm not excited by ./configure --enable-optimizations. I was 
happy with an explicit "make profile-opt".

--

___
Python tracker 

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



  1   2   >