[issue35035] Documentation for email.utils is named email.util.rst

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
stage: resolved -> patch review

___
Python tracker 

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



[issue35307] Command line help example is missing "--prompt" option

2018-11-26 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +9961
stage:  -> patch review

___
Python tracker 

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



[issue34212] Cygwin link failure with builtin modules since issue30860

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-26 Thread INADA Naoki


INADA Naoki  added the comment:

> What is also useful to know, is that I'm observing this on a legacy RHEL 6 
> system *with a customized kernel* part of the Scyld ClusterWare 
> (https://www.penguincomputing.com/products/software/scyld-clusterware/) that 
> *cannot* be updated:

Do you mean this trouble is happened only on the system?
Or can this trouble be reproducible on normal Linux kernel?

---

I think there are no bug in Python.  See this part of your
strace

```
pipe([5, 6])= 0
fcntl(5, F_GETFD)   = 0
fcntl(5, F_SETFD, FD_CLOEXEC)   = 0
fcntl(6, F_GETFD)   = 0
fcntl(6, F_SETFD, FD_CLOEXEC)   = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2ad3c972adf0) = 239074
close(6)= 0
mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2ad3ca8ed000
read(5,
```

Python creates pipe [5, 6], and set FD_CLOEXEC flag to them.
When `exec` in child process succeeded, these FDs must be closed by Linux 
kernel.

Then, `read(5,` in parent process must not be blocked.  It must return 0 soon.
So I think there are some bug in your kernel, relating to CLOEXEC.

I am not interested in this issue much because 2.6.32 is too old to me and
I never used "Scyld ClusterWare".

Maybe, you can consult with the company.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +9962
stage:  -> patch review

___
Python tracker 

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



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk


Kevin Funk  added the comment:

I just ran into this, under Python 3.6.

IMHO, the error message should be improved, even when the mode was not passed 
explicitly.

Can someone reopen this?

--
nosy: +kfunk

___
Python tracker 

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



[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Are you able to reproduce the issue with Python 3?

Can you please also try http://pypi.org/project/subprocess32/?

--

___
Python tracker 

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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Raymond, I concur that updating the doc is the proper fix :)

--

___
Python tracker 

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



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

> I just ran into this, under Python 3.6.

How did you install Python? What is your OS?

--

___
Python tracker 

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



[issue14418] Document differences in SocketServer between Python 2.6 and 2.7

2018-11-26 Thread Martin Panter

Martin Panter  added the comment:

Regarding the first point, “finish” is no longer called after an exception. 
This was apparently changed in 2.7.4 (see Issue 14574), but Geoffrey was 
referring to older documentation.

Regarding the second point, about ECONNRESET vs graceful shutdown, this seems 
to be due to the “shutdown” call added to in “TCPServer.close_request” in Issue 
6267.

--
nosy: +martin.panter

___
Python tracker 

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



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk


Kevin Funk  added the comment:

It's Python 3.6 from CentOS 6. In my particular case I'm lacking the lzma 
module. But for figuring that out I had to add the explicit modes to the 
`tarfile.open` calls in my Python script.

--

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-26 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch
pull_requests: +9963
stage:  -> patch review

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-26 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi @mgorny, the changeset in PR 10714 should  do what you are looking for.

--

___
Python tracker 

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



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk


Kevin Funk  added the comment:

(Sorry: I just noticed the Python 3.6 I'm using is /not/ from distro packages. 
The issue remains, though, the Python exception could be more descriptive.)

--

___
Python tracker 

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a6537fb7c2f7a007b4ab616c4617afd56d18347d by Victor Stinner in 
branch 'master':
bpo-35313: Fix test_embed when run from venv (GH-10713)
https://github.com/python/cpython/commit/a6537fb7c2f7a007b4ab616c4617afd56d18347d


--

___
Python tracker 

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



[issue35314] fnmatch failed with leading caret (^)

2018-11-26 Thread Cyker Way


New submission from Cyker Way :

In short, `fnmatch.fnmatch` doesn't match shell result. To test this, create a 
dir with 2 files: `a.py` and `b.py`. Then `ls [!b].py` and `ls [^b].py` will 
both show `a.py`. However, `fnmatch.fnmatch('a.py', '[!b].py')` returns `True` 
but `fnmatch.fnmatch('a.py', '[^b].py')` returns `False`.

Problem seems to come from an escaped caret: 
https://github.com/python/cpython/blob/master/Lib/fnmatch.py#L124

I don't see why caret and exclamation mark are different from `man bash`:

>   ...If the first character following the [ is a !  or a ^ then any character 
> not enclosed is matched...

Could someone please confirm it's a bug or intended behavior?

--
components: Library (Lib)
messages: 330417
nosy: cykerway
priority: normal
severity: normal
status: open
title: fnmatch failed with leading caret (^)
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



[issue35315] Error (Segmentation fault - core dumped) while installing Python3.5.2

2018-11-26 Thread Ruchi kumari


New submission from Ruchi kumari :

Regularly getting segmentation fault (core dumped) while trying to install 
Python3.5.2. 

Also seeing the following warning while doing ./configure
configure: WARNING: linux/random.h: present but cannot be compiled
configure: WARNING: linux/random.h: check for missing prerequisite headers?
configure: WARNING: linux/random.h: see the Autoconf documentation
configure: WARNING: linux/random.h: section "Present But Cannot Be Compiled"
configure: WARNING: linux/random.h: proceeding with the compiler's result

--
messages: 330418
nosy: Ruchi kumari
priority: normal
severity: normal
status: open
title: Error (Segmentation fault - core dumped) while installing Python3.5.2

___
Python tracker 

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



[issue35315] Error (Segmentation fault - core dumped) while installing Python3.5.2

2018-11-26 Thread Christian Heimes


Christian Heimes  added the comment:

Python 3.5.2 is no longer supported. The latset 3.5 release is 
https://www.python.org/downloads/release/python-356/.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue35315] Error (Segmentation fault - core dumped) while installing Python3.5.2

2018-11-26 Thread Ruchi kumari


Ruchi kumari  added the comment:

Does Python3.5.6 has inbuilt installed modules like requests etc.

On Mon, Nov 26, 2018, 16:36 Christian Heimes 
> Christian Heimes  added the comment:
>
> Python 3.5.2 is no longer supported. The latset 3.5 release is
> https://www.python.org/downloads/release/python-356/.
>
> --
> nosy: +christian.heimes
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9964

___
Python tracker 

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9965

___
Python tracker 

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



[issue35315] Error (Segmentation fault - core dumped) while installing Python3.5.2

2018-11-26 Thread Christian Heimes


Christian Heimes  added the comment:

No, requests is developed and shipped by a different team. No version of Python 
from python.org has requests pre-installed.

--

___
Python tracker 

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



[issue35315] Error (Segmentation fault - core dumped) while installing Python3.5.2

2018-11-26 Thread Ruchi kumari


Ruchi kumari  added the comment:

What about modules like urllib3 etc.

On Mon, Nov 26, 2018, 16:48 Christian Heimes 
> Christian Heimes  added the comment:
>
> No, requests is developed and shipped by a different team. No version of
> Python from python.org has requests pre-installed.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue35315] Error (Segmentation fault - core dumped) while installing Python3.5.2

2018-11-26 Thread Christian Heimes


Christian Heimes  added the comment:

bugs.python.org is a bug tracker, not a support forum. Please use the Python 
mailing list https://www.python.org/community/lists/.

--
resolution:  -> out of date
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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks for the bug report, it should now be fixed :-)

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f0b366a8d7e0f12d4448f570e990de414f4afca7 by Victor Stinner in 
branch 'master':
bpo-35313: Cleanup test_embed.py (GH-10716)
https://github.com/python/cpython/commit/f0b366a8d7e0f12d4448f570e990de414f4afca7


--

___
Python tracker 

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset e88553c3742507ba83590ecca44ae7f134f38410 by Victor Stinner in 
branch '3.7':
bpo-35313: Fix test_embed when run from venv (GH-10713) (GH-10715)
https://github.com/python/cpython/commit/e88553c3742507ba83590ecca44ae7f134f38410


--

___
Python tracker 

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



[issue14418] Document differences in SocketServer between Python 2.6 and 2.7

2018-11-26 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-26 Thread Michał Górny

Michał Górny  added the comment:

Thanks a lot! I've left a few comments based on eyeball review. I'm going to 
test it later today.

--

___
Python tracker 

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



[issue34100] Same constants in tuples are not merged while compile()

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset c2e1607a51d7a17f143b5a34e8cff7c6fc58a091 by Miss Islington (bot) 
(INADA Naoki) in branch 'master':
bpo-34100: Merge constants recursively (GH-8341)
https://github.com/python/cpython/commit/c2e1607a51d7a17f143b5a34e8cff7c6fc58a091


--
nosy: +miss-islington

___
Python tracker 

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



[issue34100] Same constants in tuples are not merged while compile()

2018-11-26 Thread INADA Naoki


Change by INADA Naoki :


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



[issue35314] fnmatch failed with leading caret (^)

2018-11-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 59423e3ddd736387cef8f7632c71954c1859bed0 by Victor Stinner in 
branch 'master':
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623)
https://github.com/python/cpython/commit/59423e3ddd736387cef8f7632c71954c1859bed0


--

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9966

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9967

___
Python tracker 

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



[issue35314] fnmatch failed with leading caret (^)

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

'^' is not considered as a special character in shell-style wildcards. Use '!' 
for negating the character set: '[!b].py'.

https://docs.python.org/3/library/fnmatch.html

`man bash` describes the behavior of Bash, not Python.

--
nosy: +serhiy.storchaka
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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6f5fa1b4be735159e964906ab608dc467476e47c by Victor Stinner in 
branch '3.7':
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718)
https://github.com/python/cpython/commit/6f5fa1b4be735159e964906ab608dc467476e47c


--

___
Python tracker 

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



[issue35316] test_eintr fails randomly on macOS

2018-11-26 Thread STINNER Victor


New submission from STINNER Victor :

test_sleep() of test_eintr fails on VSTS/macOS.

select.select() sleeps 200 ms, the process is supposed to get a signal every 
100 ms, but the test says that the signal handler was not called during the 
test. All tests pass, the issue seems to be specific to macOS.

Maybe select() cannot be interrupted by SIGALRM on macOS?

https://dev.azure.com/Python/cpython/_build/results?buildId=34604&view=logs

2018-11-26T12:51:16.6867210Z FAIL: test_sleep (__main__.TimeEINTRTest)
2018-11-26T12:51:16.6868140Z 
--
2018-11-26T12:51:16.6868300Z Traceback (most recent call last):
2018-11-26T12:51:16.6868450Z   File 
"/Users/vsts/agent/2.142.1/work/1/s/Lib/test/eintrdata/eintr_tester.py", line 
73, in tearDown
2018-11-26T12:51:16.6868570Z self.assertGreater(self.signals, 0)
2018-11-26T12:51:16.6869080Z AssertionError: 0 not greater than 0

2018-11-26T12:49:29.9119300Z os.uname: posix.uname_result(sysname='Darwin', 
nodename='Mac-329.local', release='17.7.0', version='Darwin Kernel Version 
17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', 
machine='x86_64')


I added the check (which fails) last week, ensure that the signal handler has 
been called at least once:

* bpo-35189
* commit aac1f81eef971876ba5b1673db9ce6620311c469

--
components: Tests, macOS
messages: 330432
nosy: ned.deily, pablogsal, ronaldoussoren, vstinner
priority: normal
severity: normal
status: open
title: test_eintr fails randomly on macOS
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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9968

___
Python tracker 

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



[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-26 Thread Tom Dalton


Tom Dalton  added the comment:

I've just come across this too, so would be great if the patch can be 
progressed.

--
nosy: +tom.dalton.fanduel

___
Python tracker 

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



[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-26 Thread Tom Dalton

Tom Dalton  added the comment:

Here's a minimal example so my comment is not totally vacuous:

```
import unittest
from unittest import mock

class Foo:
@classmethod
def bar(cls, baz):
pass

class TestFoo(unittest.TestCase):
def test_bar(self):
with unittest.mock.patch.object(Foo, "bar", autospec=True):
Foo.bar()
```

->

```
~/› python -m unittest example.py 
E
==
ERROR: test_bar (example.TestFoo)
--
Traceback (most recent call last):
  File "example.py", line 14, in test_bar
Foo.bar()
TypeError: 'NonCallableMagicMock' object is not callable

--
Ran 1 test in 0.001s
```

--

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


New submission from STINNER Victor :

The two following tests fail on glibc-2.28.9000-19.fc30.x86_64 on Fedora 
Rawhide depending on the timezone.

Australia/Lord_Howe: ok
EDT4: fail
EST+05EDT,M3.2.0,M11.1.0: ok
Europe/Kiev: ok
Europe/Minsk: ok
MSK-03: fail
MST+07MDT,M4.1.0,M10.5.0: ok
STD-1DST,M3.2.0,M11.1.0: ok
STD-1DST,M4.1.0,M10.1.0: ok
UTC: fail

 sh-4.4# TZ=UTC ./python -m test test_email -m 
'test_localtime_daylight_*'  -v
== CPython 3.7.1 (default, Nov 26 2018, 15:33:31) [GCC 8.2.1 20181105 (Red Hat 
8.2.1-5)]
== Linux-4.19.2-301.fc29.x86_64-x86_64-with-fedora-30-Rawhide little-endian
== cwd: /builddir/Python-3.7.1/build/test_python_9582
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 0.33 [1/1] test_email
test_localtime_daylight_false_dst_false 
(test.test_email.test_utils.LocaltimeTests) ... ok
test_localtime_daylight_false_dst_true 
(test.test_email.test_utils.LocaltimeTests) ... ERROR
test_localtime_daylight_true_dst_false 
(test.test_email.test_utils.LocaltimeTests) ... ok
test_localtime_daylight_true_dst_true 
(test.test_email.test_utils.LocaltimeTests) ... ERROR

==
ERROR: test_localtime_daylight_false_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  File "/builddir/Python-3.7.1/Lib/test/test_email/test_utils.py", line 88, in 
test_localtime_daylight_false_dst_true
t1 = utils.localtime(t0, isdst=1)
  File "/builddir/Python-3.7.1/Lib/email/utils.py", line 361, in localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

==
ERROR: test_localtime_daylight_true_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  File "/builddir/Python-3.7.1/Lib/test/test_email/test_utils.py", line 81, in 
test_localtime_daylight_true_dst_true
t1 = utils.localtime(t0, isdst=1)
  File "/builddir/Python-3.7.1/Lib/email/utils.py", line 361, in localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

--

Ran 4 tests in 0.007s

FAILED (errors=2)
test test_email failed
test_email failed

== Tests result: FAILURE ==

1 test failed:
test_email

Total duration: 259 ms
Tests result: FAILURE

 sh-4.4# rpm -q glibc
glibc-2.28.9000-19.fc30.x86_64
 sh-4.4# cat /etc/fedora-release 
Fedora release 30 (Rawhide)
 sh-4.4# date
lun. nov. 26 14:53:14 UTC 2018

--
components: Tests, email
messages: 330435
nosy: barry, r.david.murray, vstinner
priority: normal
severity: normal
status: open
title: test_email: test_localtime_daylight_false_dst_true() fails depending on 
the timezone
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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

mktime_bug.py: script to reproduce the bug.

--
Added file: https://bugs.python.org/file47946/mktime_bug.py

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I remember some related issues raised in the past about the same test failing 
on freebsd machines : issue31628 and issue15750 (some more detail on msg168747)

--
nosy: +xtreak

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread Miro Hrončok

Miro Hrončok  added the comment:

I found a C reproducer and reported to Fedora glibc tracker: 
https://bugzilla.redhat.com/show_bug.cgi?id=1653340

--
nosy: +hroncok

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor

STINNER Victor  added the comment:

Miro Hrončok:
> I found a C reproducer and reported to Fedora glibc tracker: 
> https://bugzilla.redhat.com/show_bug.cgi?id=1653340

Nice, I wrote almost the same one :-) See attached mktime_bug.c:

$ gcc mktime_bug.c -o mktime_bug
$ ./mktime_bug 
TZ=CET: mktime() -> 1331506860, errno=0
TZ=UTC: mktime() -> 1331514060, errno=0

$ ./mktime_bug
TZ=CET: mktime() -> 1331506860, errno=0
TZ=UTC: mktime() -> -1, errno=75

--
nosy:  -hroncok
Added file: https://bugs.python.org/file47947/mktime_bug.c

___
Python tracker 

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



[issue31628] test_emails failure on FreeBSD

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-35317.

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_email: test_localtime_daylight_false_dst_true() fails 
depending on the timezone

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I'm able to reproduce the issue on FreeBSD 12.0-RC2:

vstinner@freebsd$ TZ=CET ./python -m test test_email -m 
'test_localtime_daylight_*'  -v
(...)
Tests result: SUCCESS

vstinner@freebsd$ TZ=UTC ./python -m test test_email -m 
'test_localtime_daylight_*'  -v
(...)
==
ERROR: test_localtime_daylight_false_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
(...)
  File "/usr/home/vstinner/prog/python/master/Lib/email/utils.py", line 361, in 
localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

==
ERROR: test_localtime_daylight_true_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
(...)
  File "/usr/home/vstinner/prog/python/master/Lib/email/utils.py", line 361, in 
localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

--

___
Python tracker 

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



[issue15750] test_localtime_daylight_false_dst_true raises OverflowError: mktime argument out of range

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-35317.

--
resolution: fixed -> duplicate
superseder:  -> test_email: test_localtime_daylight_false_dst_true() fails 
depending on the timezone

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, the tests fail since 2012 at least on FreeBSD:

https://bugs.python.org/issue15750#msg168741

"""
On the FreeBSD 8.2 build slave:

==
ERROR: test_localtime_daylight_false_dst_true (test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  (...)
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

==
ERROR: test_localtime_daylight_true_dst_true (test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  (...)
seconds = time.mktime(tm)
OverflowError: mktime argument out of range
"""

bpo-15750 even contains a reproducer in C.

--

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +9969
stage:  -> patch review

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fc4a44b0c3a69390eca4680d89c2ae5fe967f882 by Victor Stinner in 
branch '3.6':
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) 
(GH-10720)
https://github.com/python/cpython/commit/fc4a44b0c3a69390eca4680d89c2ae5fe967f882


--

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.6, 3.7 and master have been fixed.

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6eb996685e25c09499858bee4be258776e603c6f by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/object.h (GH-10679)
https://github.com/python/cpython/commit/6eb996685e25c09499858bee4be258776e603c6f


--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 75e4699b31d1d88abad097ad13466c5c07711324 by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/unicodeobject.h (GH-10680)
https://github.com/python/cpython/commit/75e4699b31d1d88abad097ad13466c5c07711324


--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9970

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

New failure on AppVeyor:

FAIL: test_thread_time (test.test_time.TimeTestCase)
--
Traceback (most recent call last):
  File "C:\projects\cpython\lib\test\test_time.py", line 553, in 
test_thread_time
self.assertLess(stop - start, min_time)
AssertionError: 0.015625 not less than 0.015

--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9971
stage: resolved -> patch review

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Oh. In my previous attempt, I changed the minimum time from 20 ms to 15 ms. But 
I didn't notice that one check uses assertLess() rather than 
assertGreaterEqual(). So I wrote PR 10724 to change the maximum from 15 ms to 
30 ms in test_thread_time().

--

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +9972

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 6f8cab0db044132c6192d6ac1536d28cf72c9d27 by Miss Islington (bot) 
(Julien Palard) in branch '3.7':
[3.7] bpo-35255: Doc: Delete now useless Windows FAQ section (GH-10557) 
(GH-10722)
https://github.com/python/cpython/commit/6f8cab0db044132c6192d6ac1536d28cf72c9d27


--
nosy: +miss-islington

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread Julien Palard


Change by Julien Palard :


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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +9973

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 7f93f93fa68f54c1bc128d58fa17536245396de3 by Miss Islington (bot) 
(Julien Palard) in branch '3.6':
[3.6] bpo-35255: Doc: Delete now useless Windows FAQ section (GH-10557) 
(GH-10725)
https://github.com/python/cpython/commit/7f93f93fa68f54c1bc128d58fa17536245396de3


--

___
Python tracker 

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



[issue34977] Release Windows Store app containing Python

2018-11-26 Thread Steve Dower


Steve Dower  added the comment:

For my own reference, some issues I found installing this package on a clean 
machine:

* requires Developer Mode (until I get the sccd file signed - just sideloading 
is not sufficient)
* requires vcruntime140.dll to be included in the package (workaround is to 
install the redistributable from 
https://visualstudio.microsoft.com/downloads/#title-39324)
* venv needs to treat .pdb files as binary

--

___
Python tracker 

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



[issue34977] Release Windows Store app containing Python

2018-11-26 Thread Steve Dower


Steve Dower  added the comment:

For my own reference, some issues I found installing this package on a clean 
machine:

* requires Developer Mode (until I get the sccd file signed - just sideloading 
is not sufficient)
* requires vcruntime140.dll to be included in the package (workaround is to 
install the redistributable from 
https://visualstudio.microsoft.com/downloads/#title-39324)
* venv needs to treat .pdb files as binary

--

___
Python tracker 

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



[issue34977] Release Windows Store app containing Python

2018-11-26 Thread Steve Dower


Change by Steve Dower :


--
Removed message: https://bugs.python.org/msg330453

___
Python tracker 

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



[issue24209] Allow IPv6 bind in http.server

2018-11-26 Thread Lisa Roach


Change by Lisa Roach :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Raymond Hettinger

New submission from Raymond Hettinger :

The "encoding" parameter is documented to default to sys.getdefaultencoding(). 
That may be true but there doesn't seem to be a way to use that default because 
objects will all have a __str__ or __repr__ that will be run instead.

---
>>> import sys
>>> sys.getdefaultencoding() # Default encoding is utf-8
'utf-8'
>>> buffer = b'lim x \xe2\x9f\xb6 \xe2\x88\x9e, 1/sin\xc2\xb2(x)'
>>> str(buffer, 'utf-8') # Explicit argument decodes properly
'lim x ⟶ ∞, 1/sin²(x)'   
>>> str(buffer)  # Despite the default, repr is shown 
"b'lim x \\xe2\\x9f\\xb6 \\xe2\\x88\\x9e, 1/sin\\xc2\\xb2(x)'"

>>> print(str.__doc__)
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.

--
assignee: docs@python
components: Documentation
messages: 330454
nosy: docs@python, rhettinger
priority: normal
severity: normal
status: open
title: Check accuracy of str() doc string for its encoding argument
versions: Python 3.6, 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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

>>> str(buffer, errors='strict')
'lim x ⟶ ∞, 1/sin²(x)'

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35319] pkgutil.get_data() is a wrapper for a deprecated class

2018-11-26 Thread Kevin Norris


New submission from Kevin Norris :

pkgutil.get_data()'s documentation[1] says it is a wrapper for 
importlib.abc.ResourceLoader.get_data(), but the latter's documentation[2] says 
the whole class is deprecated since 3.7.

Please either:

A. Formally deprecate pkgutil.get_data() (and ideally provide a "nice" 
alternative wrapper, so that I don't have to muck about with importlib's 
endless heterarchy of opaque objects which return other opaque objects).
B. Modify pkgutil.get_data() to use ResourceReader instead of ResourceLoader.
C. (A) or (B) has already been done, just document it.

[1]: https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data
[2]: 
https://docs.python.org/3.8/library/importlib.html#importlib.abc.ResourceLoader

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 330456
nosy: Kevin.Norris, docs@python
priority: normal
severity: normal
status: open
title: pkgutil.get_data() is a wrapper for a deprecated class
type: behavior
versions: 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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

We may need to reword this a bit to show that the default system encoding only 
applies if "errors" is specified; otherwise, the argument pattern is mysterious.

--

___
Python tracker 

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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Is not it exactly what the docsting says?

> If encoding or
> errors is specified, then the object must expose a data buffer
> that will be decoded using the given encoding and error handler.
> Otherwise, returns the result of object.__str__() (if defined)
> or repr(object).

--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 65c216e74f7957006ef7653b7e2afe83007c45ce by Victor Stinner in 
branch 'master':
bpo-33723: Fix test_time.test_thread_time() (GH-10724)
https://github.com/python/cpython/commit/65c216e74f7957006ef7653b7e2afe83007c45ce


--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9974

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread Paul Ganssle


Change by Paul Ganssle :


--
nosy: +p-ganssle

___
Python tracker 

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



[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2018-11-26 Thread R. David Murray


R. David Murray  added the comment:

Without looking at doctest.py, yes.  I believe the doctests in that file should 
be already plugged in to the unittest framework, so adding new testcase 
containing a non-doctest unit test should work fine.

--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 5350dd1b50e60882a2da6d53ed27e02d2b698f2e by Miss Islington (bot) 
in branch '3.7':
bpo-33723: Fix test_time.test_thread_time() (GH-10724)
https://github.com/python/cpython/commit/5350dd1b50e60882a2da6d53ed27e02d2b698f2e


--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I close again the bug.

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9975

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9976

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5a8c240b1d97de0bd6ced2a57cbcf26da19c1fcc by Victor Stinner in 
branch 'master':
bpo-35134: Add Include/cpython/pyerrors.h (GH-10727)
https://github.com/python/cpython/commit/5a8c240b1d97de0bd6ced2a57cbcf26da19c1fcc


--

___
Python tracker 

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



[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-26 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +benjamin.peterson, pitrou

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

> Under this condition, either select() should be re-run with a timeout of 0, 
> or the fd lists should be emptied before returning.

What is the current behavior?

Are you trying to fix a bug?

--
nosy: +vstinner

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8c281ed403fd915284d5bba2405d7c47f8195066 by Serhiy Storchaka 
(Zhiming Wang) in branch 'master':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/8c281ed403fd915284d5bba2405d7c47f8195066


--

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8c281ed403fd915284d5bba2405d7c47f8195066 by Serhiy Storchaka 
(Zhiming Wang) in branch 'master':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/8c281ed403fd915284d5bba2405d7c47f8195066


--

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9977

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9978

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 4060283fcec7bb2bde4eb3c42b0a6ec99cf1d391 by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/abstract.h (GH-10728)
https://github.com/python/cpython/commit/4060283fcec7bb2bde4eb3c42b0a6ec99cf1d391


--

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 2a37f013ec81099a6156160ce66803b2609bb7f4 by Miss Islington (bot) 
in branch '3.7':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/2a37f013ec81099a6156160ce66803b2609bb7f4


--
nosy: +miss-islington

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 2a37f013ec81099a6156160ce66803b2609bb7f4 by Miss Islington (bot) 
in branch '3.7':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/2a37f013ec81099a6156160ce66803b2609bb7f4


--

___
Python tracker 

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



[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-26 Thread Brett Cannon


Brett Cannon  added the comment:

Yeah, it's a tough call because it's one of those things others have probably 
worked around already, so backporting would break the work-arounds.

If you don't want to bother backporting, Serhiy, I think it would be fine to 
not do it.

--

___
Python tracker 

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



[issue35281] Allow access to unittest.TestSuite tests

2018-11-26 Thread Brett Cannon


Brett Cannon  added the comment:

Gotcha, thanks for the clarification!

Unfortunately I don't think we will be able to accommodate your feature 
request. It's duplicating an API to simply save calling list() which is the 
idiomatic way to convert an iterable into a concrete sequence. And providing 
direct access to the list would be either unittest.TestCase-specific or all 
subclasses would then have to start supporting it.

--
resolution:  -> rejected
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



[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-26 Thread Brett Cannon


Brett Cannon  added the comment:

I think the only thing missing from your list, Andrew, is updating docstrings 
and such to mention is_alive() instead of isAlive().

--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9979

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9980

___
Python tracker 

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



[issue35240] Travis CI: xvfb-run: error: Xvfb failed to start

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Same error: https://travis-ci.org/python/cpython/jobs/459983088

--

___
Python tracker 

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



  1   2   >