[issue35379] IDLE's close fails io is set to None on Mac

2019-09-16 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +15813
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16212

___
Python tracker 

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



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-16 Thread Ned Deily


Ned Deily  added the comment:

> I've added 'release blocker' priority to don't miss this bugfix for the next 
> release.

Note that 3.7.5rc1 is scheduled to be tagged today so we need to make a 
decision on whether to hold the release for a fix.  From a quick test, it looks 
like the behavior was introduced in 3.7.1 as the test does not fail for me with 
3.7.0. If so, that seems to meet the criteria for a maintenance release 
regression and thus potentially a release blocker.

--
assignee:  -> asvetlov
keywords: +3.7regression

___
Python tracker 

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



[issue36274] http.client cannot send non-ASCII request lines

2019-09-16 Thread Ned Deily


Ned Deily  added the comment:

See msg352596 in Issue30458 for discussion of whether the regression should be 
considered a "release blocker" for the imminent 3.7.5 and 3.5.8 releases.

--
keywords: +3.7regression
nosy: +ned.deily

___
Python tracker 

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



[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-09-16 Thread Ned Deily


Ned Deily  added the comment:

If I understand Jason's message correctly, the changes for Issue30458 
introduced a regression in 3.7.4 and will introduce the same regression in 
other branches as they are released, including 3.5.8 whose rc1 is now in 
testing.  3.7.5rc1 is scheduled to be tagged later today.  Is this regression 
serious enough that we should hold 3.7.5 and/or 3.5.8 for a fix?  If so, there 
should probably be a separate issue for it unless it is necessarily intertwined 
with the resolution of Issue36274.

I'm provisionally setting the status of this issue to "release blocker".

--
nosy: +benjamin.peterson, lukasz.langa, ned.deily
priority: normal -> release blocker

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

I can restart the worker to create the environment that reproduces the issue at 
any time to confirm the test passes, just let me know

--

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset ad845becf29afe0507a46a4b885a9670b5d7639d by Miss Islington (bot) 
in branch '3.8':
bpo-38183: Test_idle ignores user config directory GH-16198)
https://github.com/python/cpython/commit/ad845becf29afe0507a46a4b885a9670b5d7639d


--
nosy: +miss-islington

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 523497cbdc8292bfc12938aaaca0ad02a7708c25 by Miss Islington (bot) 
in branch '3.7':
bpo-38183: Test_idle ignores user config directory GH-16198)
https://github.com/python/cpython/commit/523497cbdc8292bfc12938aaaca0ad02a7708c25


--

___
Python tracker 

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



[issue37224] test__xxsubinterpreters failed on AMD64 Windows8.1 Refleaks 3.8

2019-09-16 Thread Kyle Stanley


Kyle Stanley  added the comment:

Upon further consideration, I don't think this will address the issue. If the 
RuntimeError was not being raised, this failure would be consistent rather than 
intermittent. 

I think I have have gotten a bit mixed up, even if the return value of 
PyErr_Format is NULL, it would not implicitly return NULL upon being called and 
exit the function early (like a macro could) . I'm not experienced with 
programming in C, I only started learning it more recently (Python, Java, and 
C# have been my primary languages) when I started contributing to CPython in 
June.

Instead, I suspect this is likely a concurrency issue, where multiple threads 
are trying to access the same sub-interpreter during ``interp_destroy()``. The 
solution will likely involve finding the correct place for a lock. I'll 
continue to work on this and see if I can find a solution.

--

___
Python tracker 

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



[issue38177] test_tools: test.test_tools.test_unparse.UnparseTestCase: test_tools leaked [36, 36, 36] references

2019-09-16 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 0048afc16a7e7301d5c565237db271505e5fbed9 by Terry Jan Reedy in 
branch 'master':
bpo-38183: Test_idle ignores user config directory GH-16198)
https://github.com/python/cpython/commit/0048afc16a7e7301d5c565237db271505e5fbed9


--

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15812
pull_request: https://github.com/python/cpython/pull/16208

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15811
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/16207

___
Python tracker 

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



[issue38194] Consistently add exist_ok / missing_ok parameters to directory creation/deletion functions

2019-09-16 Thread Tim Hoffmann


New submission from Tim Hoffmann :

The following functions accept exist_ok/missing_ok parameters:

- Path.mkdir(exist_ok)
- os.makedirs(exist_ok)
- shutil.copytree(dirs_exist_ok) - (https://bugs.python.org/issue20849)
- Path.unlink(missing_ok) - (https://bugs.python.org/issue33123)

For consistency, these functions should support them as well (but currently 
don't):

- os.makedir(exist_ok)
- os.rmdir(missing_ok)
- Path.rmdir(missing_ok)
- os.removedirs(missing_ok)
- shutil.rmtree(missing_ok)

--
components: Library (Lib)
messages: 352590
nosy: timhoffm
priority: normal
severity: normal
status: open
title: Consistently add exist_ok / missing_ok parameters to directory 
creation/deletion functions
type: enhancement
versions: Python 3.9

___
Python tracker 

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



[issue28556] typing.py upgrades

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 7076764992cd29e0e1f8b0ac2b92403e1a698aa6 by Miss Islington (bot) 
in branch '3.8':
bpo-28556: Update the opening note in typing docs (GH-16204)
https://github.com/python/cpython/commit/7076764992cd29e0e1f8b0ac2b92403e1a698aa6


--

___
Python tracker 

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



[issue28556] typing.py upgrades

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 733193d050f317a7965faac6c3718e6e8316a8a0 by Miss Islington (bot) 
in branch '3.7':
bpo-28556: Update the opening note in typing docs (GH-16204)
https://github.com/python/cpython/commit/733193d050f317a7965faac6c3718e6e8316a8a0


--

___
Python tracker 

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



[issue28556] typing.py upgrades

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15810
pull_request: https://github.com/python/cpython/pull/16206

___
Python tracker 

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



[issue28556] typing.py upgrades

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15809
pull_request: https://github.com/python/cpython/pull/16205

___
Python tracker 

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



[issue28556] typing.py upgrades

2019-09-16 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:


New changeset 81528ba2e81c39f4d6bca5b785e818c7d08b8501 by Ivan Levkivskyi in 
branch 'master':
bpo-28556: Update the opening note in typing docs (GH-16204)
https://github.com/python/cpython/commit/81528ba2e81c39f4d6bca5b785e818c7d08b8501


--

___
Python tracker 

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



[issue38193] http.client should be "runnable" like http.server

2019-09-16 Thread Will Boyce


New submission from Will Boyce :

I think it would be both sensible and useful if the `http.client` library 
exposed a "runnable" interface (similar to `http.server`). I would suggest 
keeping it simple, for example:

python -m http.client 
python -m http.client -o  

--
components: Library (Lib)
messages: 352586
nosy: Will Boyce
priority: normal
severity: normal
status: open
title: http.client should be "runnable" like http.server
type: enhancement

___
Python tracker 

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



[issue38155] Add __all__ to the datetime module

2019-09-16 Thread Tahia K


Tahia K  added the comment:

Thanks @corona10. I've posted a PR with all these bits.

--

___
Python tracker 

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



[issue38155] Add __all__ to the datetime module

2019-09-16 Thread Tahia K


Change by Tahia K :


--
keywords: +patch
pull_requests: +15807
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/16203

___
Python tracker 

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



[issue28556] typing.py upgrades

2019-09-16 Thread Ivan Levkivskyi


Change by Ivan Levkivskyi :


--
pull_requests: +15808
pull_request: https://github.com/python/cpython/pull/16204

___
Python tracker 

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



[issue38192] Fix invocation of EchoClientProtocol

2019-09-16 Thread Hrvoje Nikšić

New submission from Hrvoje Nikšić :

This is a followup on issue38178. While testing the new code, I noticed that my 
change introduced a bug, where the code still attempts to pass "loop" when 
constructing an EchoClientProtocol. A pull request is attached.

Also, I've noticed that the MyProtocol example under "Connecting Existing 
Sockets" is still passing an explicit loop, so I created a commit that converts 
it to the on_con_lost idiom, and included it in the above pull request.

--
assignee: docs@python
components: Documentation, asyncio
messages: 352584
nosy: asvetlov, docs@python, hniksic, yselivanov
priority: normal
severity: normal
status: open
title: Fix invocation of EchoClientProtocol
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue38192] Fix invocation of EchoClientProtocol

2019-09-16 Thread Hrvoje Nikšić

Change by Hrvoje Nikšić :


--
keywords: +patch
pull_requests: +15806
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16202

___
Python tracker 

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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

I also opened https://bugs.python.org/issue38177#msg352474 we should only track 
this leak in a single issue, you can close bpo-38177.

--

___
Python tracker 

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



[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

> https://buildbot.python.org/all/#/builders/225/builds/239

This bug only occurred once, the next build (240) was fine.

--

___
Python tracker 

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



[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

> command timed out: 1200 seconds without output running ['make', 
> 'buildbottest', 'TESTOPTS=-j2 -j4 ${BUILDBOT_TESTOPTS}', 'TESTPYTHONOPTS=', 
> 'TESTTIMEOUT=900'], attempting to kill

faulthandler is supposed to display the traceback where the test hangs, but for 
the main process, libregrtest uses a delay of timeout x 2 seconds:

self.worker_timeout = self.ns.timeout * 1.5
self.main_timeout = self.ns.timeout * 2.0

Here timeout=900 ("TESTTIMEOUT=900"), so main_timeout = 1800 seconds (30 
minutes), whereas buildbot timeout is 1200 seconds (20 minutes) :-(

In fact, main_timeout can be *way* shorter: the main process calls 
faulthandler.dump_traceback_later(self.main_timeout, exit=True) every 
max(PROGRESS_UPDATE, PROGRESS_MIN_TIME) seconds (or more often): every 30 
seconds (of more often).

So main_process could be max(PROGRESS_UPDATE, PROGRESS_MIN_TIME) x 2 = 1 
minute, instead of 30 minutes.

--

___
Python tracker 

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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +nanjekyejoannah, vstinner

___
Python tracker 

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



[issue38162] Import Long Load

2019-09-16 Thread STINNER Victor

STINNER Victor  added the comment:

tempfile uses a low number of random bits per filename, so collision is 
"likely". Two Python processes might attempt to create the same temporary file 
"at the same time". Maybe not two processes, but two Python threads.

Rather than writing complex locking mechanism, "for seq in range(TMP_MAX):" 
retries. While one collision is "likely", TMP_MAX is less likely, especially if 
TMP_MAX is big.

On my Linux, I get:

pvstinner@apu$ python3
Python 3.7.4 (default, Jul  9 2019, 16:32:37) 
>>> import posix
>>> posix.TMP_MAX
238328

Removing the loop introduces a race condition. You tagged this issue as 
"performance": well, in Python we don't accept optimizations which make Python 
"not correct". Correctness matters more than performance.

If tempfile is critical for your application performance, you can easily copy 
tempfile.py and adapt it for your needs ;-)

--

Well, as Stéphane wrote: you need to eloborate the rationale for your change.

--

___
Python tracker 

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



[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-16 Thread Glenn Gribble


New submission from Glenn Gribble :

At present, it is not possible to use the shorthand notation to define a 
NamedTuple with typename or fields.  I.e., NamedTuple('MyTuple', typename=str, 
fields=int) does not work.  Changing the parameter names to _typename and 
_fields would allow any non-private, legal identifier to be used in the 
shorthand notation.
  
>>> import typing
>>> typing.NamedTuple('Example', fieldz=int)

>>> typing.NamedTuple('Example2', fields=int)
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python37\lib\typing.py", line 1411, in __new__
return _make_nmtuple(typename, fields)
  File "C:\Program Files\Python37\lib\typing.py", line 1326, in _make_nmtuple
types = [(n, _type_check(t, msg)) for n, t in types]
TypeError: 'type' object is not iterable


Of course, it is fairly easy to work around the issue by using fields parameter:

>>> typing.NamedTuple('Example3', [('fields', int)])



There would be backwards compatibility issues with any code using named 
arguments for fields or typename.

--
components: Library (Lib)
messages: 352579
nosy: gribbg
priority: normal
severity: normal
status: open
title: typing.NamedTuple() should prefix parameters with '_'
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset c55f69552cdab26362c1ff4416fe1c3e9b27ccbe by Miss Islington (bot) 
in branch '3.7':
[3.7] bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ 
(GH-16140) (GH-16200)
https://github.com/python/cpython/commit/c55f69552cdab26362c1ff4416fe1c3e9b27ccbe


--

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 1ecc75ad1cdf458c2aa7192844e83c4665a5f9b5 by Miss Islington (bot) 
in branch '3.8':
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)
https://github.com/python/cpython/commit/1ecc75ad1cdf458c2aa7192844e83c4665a5f9b5


--

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 5d55d52b61f56522e616ac1423437d4e3f641ce6 by Miss Islington (bot) 
in branch '2.7':
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)
https://github.com/python/cpython/commit/5d55d52b61f56522e616ac1423437d4e3f641ce6


--

___
Python tracker 

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



[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-16 Thread Eric Snow


Eric Snow  added the comment:

Yeah, dropping str support is fine.  It wouldn't be hard to add it back in if 
later we find it's useful. :)

--

___
Python tracker 

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



[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-16 Thread STINNER Victor


New submission from STINNER Victor :

https://buildbot.python.org/all/#/builders/225/builds/239

...
0:21:16 load avg: 2.54 [422/423] test_venv passed (1 min 31 sec) -- running: 
test_tools (1 min 27 sec)
running: test_tools (1 min 57 sec)
running: test_tools (2 min 27 sec)
running: test_tools (2 min 57 sec)
running: test_tools (3 min 27 sec)
0:23:42 load avg: 1.48 [423/423] test_tools passed (3 min 52 sec)
command timed out: 1200 seconds without output running ['make', 'buildbottest', 
'TESTOPTS=-j2 -j4 ${BUILDBOT_TESTOPTS}', 'TESTPYTHONOPTS=', 'TESTTIMEOUT=900'], 
attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=2628.905564


It may be a regression caused by bpo-37531.

--
components: Tests
messages: 352574
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: regrtest: test suite completes but Tests Result is not displayed and the 
process hangs
versions: Python 3.8

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

>From IDLE's viewpoint, the 2.7 failures are the same.  In current 3.x, 
>GetUserCfgDir has

warn = ('\n Warning: unable to create user config directory\n' +
userDir + '\n Check path and permissions.\n Exiting!\n')
if not idlelib.testing:
print(warn, file=sys.stderr)
raise SystemExit

In 2.7. the conditional clause is not there because idlelib.testing does not 
exist.  It was added to avoid 3.x regrtest resource-changed checks that either 
were not backported to 2.7 or are not triggered by the smaller 2.7 set of IDLE 
tests.

The irony of the failures is that the tests are carefully written to pass 
regardless of user config values, if any, and never alter them.  Only 
test_config and test_configdialog actually *need* to access the config 
machinery.  Other tests could mock idleConf.

PR 16198 has a minimal fix that works on my Windows machine.  A 2.7 backport, 
which must be manual, will require the addition of idlelib.testing and its 
setting it test_idle.  I will wait for passes from buildbots, not just the CI.

Followup issues:

0. For 'other tests', mock idleConf and run a bit faster.

1. If ignoring .idlerc this way works, simplify some of the tests by setting 
idlelib.testing to True instead of duplicating what IdleConf will now  do.

2. Minimally implement "# TODO continue without userDIr instead of exit".  
Replace "raise SystemExit" with "return ''" and add warnings that configuration 
changes will disappear when exiting IDLE.

--
stage: patch review -> commit review
type:  -> behavior
versions: +Python 2.7, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15805
pull_request: https://github.com/python/cpython/pull/16201

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 724f1a57231f9287c37255adf0e4364d12cf693d by Miss Islington (bot) 
(Christian Heimes) in branch 'master':
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)
https://github.com/python/cpython/commit/724f1a57231f9287c37255adf0e4364d12cf693d


--
nosy: +miss-islington

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15803
pull_request: https://github.com/python/cpython/pull/16199

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15804
pull_request: https://github.com/python/cpython/pull/16200

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +15802
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16198

___
Python tracker 

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



[issue38162] Import Long Load

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

and related to 3.6 (security)

--

___
Python tracker 

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



[issue38162] Import Long Load

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close the issue because there is no discussion :/

--
components: +Unicode -Windows
nosy: +ezio.melotti, matrixise, vstinner
resolution:  -> rejected
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



[issue38165] freezes when loading a program on imports

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close the issue because it's a duplicate of an other issue of the same author.

--
nosy: +matrixise
resolution:  -> duplicate
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



[issue21705] cgi.py: Multipart with more than one file is misparsed

2019-09-16 Thread Ethan Furman


Ethan Furman  added the comment:

The last status was "test-needed" -- has anyone verified that a test exists for 
this scenario?

--

___
Python tracker 

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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close this issue, it's not related to the packaging of Python, but just to 
your compilation.

As explained by Ammar Askar, when you compile Python, you have to be sure that 
you have the openssl-dev package installed on your system

You can read this page: 
https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_linux.html

--
nosy: +matrixise
resolution:  -> not a bug
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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I guess it's due to the binary not being built with ssl module. During build 
did you get a message like below ? 


Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with 
X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, 
https://github.com/libressl-portable/portable/issues/381

In the REPL you can verify it by trying to import ssl module that would fail if 
python was not built with ssl

./python.exe
Python 3.9.0a0 (heads/pr_16148:1a801bd50d, Sep 16 2019, 22:15:26)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/ssl.py", line 
98, in 
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'

--
nosy: +xtreak

___
Python tracker 

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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Ammar Askar


Ammar Askar  added the comment:

As the error says:

> Can't connect to HTTPS URL because the SSL module is not available.

Since you built it from source, you should check your build logs, the _ssl 
module likely failed to build. You're most probably missing the openssl 
dependency.

--
nosy: +ammar2

___
Python tracker 

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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Jonathan Gossage


New submission from Jonathan Gossage :

Python 3.8 was installed from source on Ubuntu 19.04 desktop and a virtual 
environment was created with python3.8 -m venv venvrh. When attempting to use 
pip to install a package, the following error was encountered:

(venvrh) jgossage@jgossage-XPS-8700:~/Projects/Maintenance$ pip install sphinx
WARNING: pip is configured with locations that require TLS/SSL, however the ssl 
module in Python is not available.
Collecting sphinx
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  Could not fetch URL https://pypi.org/simple/sphinx/: There was a problem 
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): 
Max retries exceeded with url: /simple/sphinx/ (Caused by SSLError("Can't 
connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement sphinx (from 
versions: none)
ERROR: No matching distribution found for sphinx
WARNING: pip is configured with locations that require TLS/SSL, however the ssl 
module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem 
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): 
Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect 
to HTTPS URL because the SSL module is not available.")) - skipping

--
assignee: christian.heimes
components: SSL
messages: 352564
nosy: Jonathan.Gossage, christian.heimes
priority: normal
severity: normal
status: open
title: pip does not run in virtual environment in 3.8
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread miss-islington

miss-islington  added the comment:


New changeset 7aae4f004e69ebec011098f85ab232e2778a0ca4 by Miss Islington (bot) 
(Stéphane Wirtel) in branch '3.7':
[3.7] bpo-38100: Fix spelling error in unittest.mock code (GH-16195)
https://github.com/python/cpython/commit/7aae4f004e69ebec011098f85ab232e2778a0ca4


--

___
Python tracker 

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



[issue38188] Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in multiprocessing.reduction.DupHandle

2019-09-16 Thread Ammar Askar


Change by Ammar Askar :


--
nosy: +eryksun

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
pull_requests: +15801
pull_request: https://github.com/python/cpython/pull/16195

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Lisa Roach

Lisa Roach  added the comment:

(y) Thanks for looking into it Stéphane!

--

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Lisa, I don't close this issue because I would like to know if we have to back 
port to 3.7. The spelling error does exist into 3.7

--
versions: +Python 3.8, Python 3.9

___
Python tracker 

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



[issue38188] Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in multiprocessing.reduction.DupHandle

2019-09-16 Thread Cameron Kennedy


New submission from Cameron Kennedy :

The DuplicateHandle function is utilized by the DupHandle object to duplicate 
handles for the purpose of sending and receiving between processes on Windows 
systems. At least on Python 3.7.3, this function is invoked with an incorrect 
argument order. In multiprocessing.reduction, send_handle passes 
_winapi.DUPLICATE_SAME_ACCESS as the access argument to the DupHandle 
constructor, which in-turn passes it to the access argument for 
_winapi.DuplicateHandle(). Instead, per 
https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-duplicatehandle
 this constant should be passed into the options argument. This bug results in 
any handles communicated via this method to have meaningless permissions set, 
which makes them unusable. 

I've monkeypatched the issue with the following code:

try:
import _winapi
log = logging.getLogger('')
log.warning('Patching multiprocessing.reduction to deal with the 
_winapi.DuplicateHandle() PROCESS_DUP_HANDLE argument order bug.')
class _PatchedDupHandle(object):
'''Picklable wrapper for a handle.'''
def __init__(self, handle, access, pid=None, options=0):
if pid is None:
# We just duplicate the handle in the current process and
# let the receiving process steal the handle.
pid = os.getpid()
proc = _winapi.OpenProcess(_winapi.PROCESS_DUP_HANDLE, False, pid)
try:
self._handle = _winapi.DuplicateHandle(
_winapi.GetCurrentProcess(),
handle, proc, access, False, options)
finally:
_winapi.CloseHandle(proc)
self._options = options
self._access = access
self._pid = pid

def detach(self):
'''Get the handle.  This should only be called once.'''
# retrieve handle from process which currently owns it
if self._pid == os.getpid():
# The handle has already been duplicated for this process.
return self._handle
# We must steal the handle from the process whose pid is self._pid.
proc = _winapi.OpenProcess(_winapi.PROCESS_DUP_HANDLE, False,
   self._pid)
try:
return _winapi.DuplicateHandle(
proc, self._handle, _winapi.GetCurrentProcess(),
self._access, False, 
self._options|_winapi.DUPLICATE_CLOSE_SOURCE)
finally:
_winapi.CloseHandle(proc)
DupHandle = _PatchedDupHandle
def _patched_send_handle(conn, handle, destination_pid):
'''Send a handle over a local connection.'''
dh = DupHandle(handle, 0, destination_pid, 
_winapi.DUPLICATE_SAME_ACCESS)
conn.send(dh)
send_handle=_patched_send_handle
except ImportError:
pass

The above seems to fix the problem on my machine by adding an additional 
options property to the DupHandle object and an options argument to send_handle 
function.

--
components: Windows
messages: 352560
nosy: m3rc1fulcameron, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in 
multiprocessing.reduction.DupHandle
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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

I've restarted the worker via sudo service(8), which shouldn't have the same 
(environment) issue as starting the rc script directly under sudo

https://buildbot.python.org/all/#/builders/168/builds/1462 is running now

Let me know if you need any further information from my end to assist 
resolution of test_idle under reproduction conditions

--

___
Python tracker 

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



[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8debfa50407107ff2329d01081cdc12d359f1d12 by Serhiy Storchaka in 
branch 'master':
bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155)
https://github.com/python/cpython/commit/8debfa50407107ff2329d01081cdc12d359f1d12


--

___
Python tracker 

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



[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15800
pull_request: https://github.com/python/cpython/pull/16194

___
Python tracker 

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



[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15799
pull_request: https://github.com/python/cpython/pull/16193

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55 by Miss Islington (bot) 
in branch '3.8':
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
https://github.com/python/cpython/commit/cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55


--
nosy: +miss-islington

___
Python tracker 

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



[issue38136] Remove AsyncMock.assert_awaited_*

2019-09-16 Thread Lisa Roach


Change by Lisa Roach :


--
keywords: +patch
pull_requests: +15798
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16192

___
Python tracker 

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



[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-09-16 Thread Michael Foord


Michael Foord  added the comment:

I like assertPermutation (with or without the Is, slight preference for 
without).

--

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset a9187c31185fe7ea47271839898416400cc3d976 by Stéphane Wirtel 
(marcoramirezmx) in branch 'master':
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
https://github.com/python/cpython/commit/a9187c31185fe7ea47271839898416400cc3d976


--
nosy: +matrixise

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15797
pull_request: https://github.com/python/cpython/pull/16191

___
Python tracker 

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



[issue38185] Weird way of case-insensitive indexing of sqlite3.Row

2019-09-16 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +15796
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16190

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Lisa Roach


Lisa Roach  added the comment:

It helps to comment on the issue before making a PR for it to claim it, as now 
we have 3 PRs all for the same issue :) We will likely accept the first PR that 
was created (or in this case the first PR that gets a CLA signed for it)

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Check this failure in the buildbots for reference:

https://buildbot.python.org/all/#/builders/80/builds/705/steps/4/logs/stdio

--

___
Python tracker 

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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Running the test suite to check refleaks over test.test_tools.test_c_analyzer 
will always fail, make it impossible for the refleak buildbots to run 
correctly. 

Steps to reproduce:

./python -m test test_tools -v -R 3:3


==
FAIL: test_typical 
(test.test_tools.test_c_analyzer.test_c_globals.test_find.StaticsTest)
--
Traceback (most recent call last):
  File 
"/home/pablogsal/github/cpython/Lib/test/test_tools/test_c_analyzer/test_c_globals/test_find.py",
 line 319, in test_typical
self.assertEqual(found, [
AssertionError: Lists differ: [Vari[413 chars]rc1/sub/ham.c', funcname=None, 
name='var1'), v[318 chars]nt')] != [Vari[413 chars]rc1/spam.c', funcname=None, 
name='freelist'), [431 chars]nt')]

First differing element 4:
Varia[21 chars]rc1/sub/ham.c', funcname=None, name='var1'), v[30 chars]t *')
Varia[21 chars]rc1/spam.c', funcname=None, name='freelist'), [34 chars]10]')

Second list contains 1 additional elements.
First extra element 8:
Variable(id=ID(filename='Include/spam.h', funcname=None, name='data'), 
vartype='static const int')

  [Variable(id=ID(filename='src1/spam.c', funcname=None, name='var1'), 
vartype='static const char *'),
   Variable(id=ID(filename='src1/spam.c', funcname='ham', name='initialized'), 
vartype='static int'),
   Variable(id=ID(filename='src1/spam.c', funcname=None, name='var2'), 
vartype='static PyObject *'),
   Variable(id=ID(filename='src1/eggs.c', funcname='tofu', name='ready'), 
vartype='static int'),
+  Variable(id=ID(filename='src1/spam.c', funcname=None, name='freelist'), 
vartype='static (PyTupleObject *)[10]'),
   Variable(id=ID(filename='src1/sub/ham.c', funcname=None, name='var1'), 
vartype='static const char const *'),
   Variable(id=ID(filename='src2/jam.c', funcname=None, name='var1'), 
vartype='static int'),
   Variable(id=ID(filename='src2/jam.c', funcname=None, name='var2'), 
vartype='static MyObject *'),
   Variable(id=ID(filename='Include/spam.h', funcname=None, name='data'), 
vartype='static const int')]

--

Ran 219 tests in 3.769s

FAILED (failures=1, skipped=2, expected failures=14)
test test_tools failed
test_tools failed

== Tests result: FAILURE ==

1 test failed:
test_tools

Total duration: 19 sec 101 ms
Tests result: FAILURE

--
components: Tests
messages: 352552
nosy: eric.snow, pablogsal
priority: normal
severity: normal
status: open
title: test.test_tools.test_c_analyzer fails in refleak mode
versions: Python 3.9

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset 76d8fb771659a5574604bf78eb2ee090f5c337cc by Steve Dower in branch 
'3.7':
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
https://github.com/python/cpython/commit/76d8fb771659a5574604bf78eb2ee090f5c337cc


--

___
Python tracker 

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



[issue38106] [2.7] Race in PyThread_release_lock on macOS - can lead to memory corruption and deadlock

2019-09-16 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -terry.reedy

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 4924d558478c9bd7f7ee7cd9c00c72c0f281f1a5 by Miss Islington (bot) 
in branch '3.8':
bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156)
https://github.com/python/cpython/commit/4924d558478c9bd7f7ee7cd9c00c72c0f281f1a5


--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 26729ce74a47c3d16f219aee0a712011622aeeb5 by Miss Islington (bot) 
in branch '3.8':
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
https://github.com/python/cpython/commit/26729ce74a47c3d16f219aee0a712011622aeeb5


--

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread Steve Dower


Change by Steve Dower :


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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15795
pull_request: https://github.com/python/cpython/pull/16187

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset 89b8933bb537179f81003928786c5cc6183af591 by Steve Dower in branch 
'master':
bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156)
https://github.com/python/cpython/commit/89b8933bb537179f81003928786c5cc6183af591


--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +15794
pull_request: https://github.com/python/cpython/pull/16186

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest to fix the buildbot workers right now. I plan to leave this issue 
open until test_idle is fixed.

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15793
pull_request: https://github.com/python/cpython/pull/16185

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset 3ab73f6bbf4ff66e7ace3c4eab25461b5c7d71d4 by Steve Dower in branch 
'master':
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
https://github.com/python/cpython/commit/3ab73f6bbf4ff66e7ace3c4eab25461b5c7d71d4


--

___
Python tracker 

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



[issue38179] Test subprocess fails on Fedora 30: test_group and test_extra_groups

2019-09-16 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think this should be fixed now as reported in 
https://bugs.python.org/issue36046#msg352235 . Can you please try the latest 
master branch?

--
nosy: +gregory.p.smith, xtreak

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +15792
pull_request: https://github.com/python/cpython/pull/16184

___
Python tracker 

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



[issue38186] Use FindFirstFile in ntpath.realpath() when access is denied

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:

See issue38081 and PR 16156 for related discussion and changes.

--

___
Python tracker 

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



[issue38186] Use FindFirstFile in ntpath.realpath() when access is denied

2019-09-16 Thread Steve Dower


New submission from Steve Dower :

There remains a case in ntpath.realpath() where a (handled) ERROR_ACCESS_DENIED 
or ERROR_SHARING_VIOLATION will break out of traversing a series of paths.

However, in this case (in os.stat(), for example), we could request the real 
name of the file from the directory using FindFirstFileW. This would correct 
the case and remove any path shortening (e.g. LONGFI~1 to LongFilename) without 
needing to directly access the file.

--
components: Windows
messages: 352543
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Use FindFirstFile in ntpath.realpath() when access is denied
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread Julien Palard


Julien Palard  added the comment:


New changeset 210dc3bb37ec57a8b8b16ffe0881181138a6e973 by Julien Palard in 
branch '3.7':
[3.7] bpo-33095: Add reference to isolated mode in -m and script option 
(GH-7764) (GH-16181)
https://github.com/python/cpython/commit/210dc3bb37ec57a8b8b16ffe0881181138a6e973


--
nosy: +mdk

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 0067fc287a86cdd8d71dc2d402d596950ff88fca by Miss Islington (bot) 
in branch '3.8':
bpo-38153: detect shake independently from sha3 (GH-16143)
https://github.com/python/cpython/commit/0067fc287a86cdd8d71dc2d402d596950ff88fca


--
nosy: +miss-islington

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 07186c3959a61c3d73b5ccae431cdd32afe70e5e by Miss Islington (bot) 
in branch '3.8':
bpo-33095: Add reference to isolated mode in -m and script option (GH-7764)
https://github.com/python/cpython/commit/07186c3959a61c3d73b5ccae431cdd32afe70e5e


--
nosy: +miss-islington

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +15791
pull_request: https://github.com/python/cpython/pull/16181

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15790
pull_request: https://github.com/python/cpython/pull/16180

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15789
pull_request: https://github.com/python/cpython/pull/16179

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-16 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset e8d7fa2db8a6c641019b06943852492f24ac3e69 by Christian Heimes in 
branch '3.8':
[3.8] bpo-38153: Normalize hashlib algorithm names (GH-16083) (GH-16144)
https://github.com/python/cpython/commit/e8d7fa2db8a6c641019b06943852492f24ac3e69


--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset d8903416d223d01e23dfa8bffe48b1428d90d202 by Steve Dower in branch 
'2.7':
bpo-38117: Updates bundled OpenSSL to 1.0.2t (GH-16178)
https://github.com/python/cpython/commit/d8903416d223d01e23dfa8bffe48b1428d90d202


--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:

I've published the sources and binaries for Windows - will get to updating the 
3.9/3.8/3.7 branches later today unless someone else does first (should just 
require version number changes).

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +15788
pull_request: https://github.com/python/cpython/pull/16178

___
Python tracker 

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



[issue38180] Test pyexpat fails on Fedora 30

2019-09-16 Thread Christian Heimes


Christian Heimes  added the comment:

What's your expat version? Please post the output of "rpm -qa expat"

--
nosy: +christian.heimes

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

This is related to issue 37400 and issue 27838 in that specific invocations of 
the buildbot service (like via sudo) cause the environment to be setup 
differently.

In this case, I had just started the buildbot worker via sudo prior to the 
build starting and failing.

In the #37400 and #27838 cases (see msg295486), sudo was also used, where HOME 
ends up being /root, which is not writeable by the user the worker is run under 
(buildbot).

The test should either mock, or should write to a known temp directory 
(possibly one it creates), either in the build dir, or /tmp or similar, though 
I'd lean towards keeping all test writes within the scope of the temporary 
build location

I can either

1) if the issue cannot be resolved in short order, restart the worker now to 
clear the problem, until this issue has a changeset against it to resolve it

2) if it can be resolved in short order, leave the worker in this state until 
fixed

--

___
Python tracker 

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



[issue33214] join method for list and tuple

2019-09-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is history, but in 1997 Python had the same order of arguments as 
ECMAScript: string.join(words [, sep]). str.join() was added only in 1999 
(226ae6ca122f814dabdc40178c7b9656caf729c2).

--

___
Python tracker 

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



[issue24363] httplib fails to handle semivalid HTTP headers

2019-09-16 Thread Christian Schmidbauer


Change by Christian Schmidbauer :


--
keywords: +patch
pull_requests: +15787
pull_request: https://github.com/python/cpython/pull/12214

___
Python tracker 

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



[issue38185] Weird way of case-insensitive indexing of sqlite3.Row

2019-09-16 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

sqlite3.Row can be indexed by integers and by strings. In the latter case 
string matching is case insensitive. But the code that implements this is too 
simple-minded. It compares UTF-8 representation of two strings ignoring some 
bit. It works for ASCII letters, but has weird behavior for digits, '_' and 
non-ASCII characters.

For example:

>>> import sqlite3
>>> con = sqlite3.connect(":memory:")
>>> con.row_factory = sqlite3.Row
>>> row = con.execute("select 1 as a_1").fetchone()
>>> row['a_1']
1
>>> row['A_1']
1
>>> row['A_\x11']
1
>>> row['A\x7f1']
1
>>> row = con.execute("select 1 as ÿ").fetchone()
>>> row["ÿ"]
1
>>> row["Ÿ"]
Traceback (most recent call last):
  File "", line 1, in 
IndexError: No item with that key
>>> row["ß"]
1

--
components: Library (Lib)
messages: 352533
nosy: berker.peksag, ghaering, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Weird way of case-insensitive indexing of sqlite3.Row
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



  1   2   >