[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

RegressionTestResult is a subclass of TextTestResult, but it completely ignores 
the TextTestResult function of outputting results and re-implements it. The 
problem of this is not only duplicating the code, but that if TextTestResult is 
changed (for example to fix issue25894) the corresponding changes should be 
re-implemented in RegressionTestResult. And since implementations that produce 
the same result are different (somewhere in subtle way), it adds much work and 
is errorprone.

The proposed PR removes any text output code from RegressionTestResult and 
allows to use TextTestResult for output.

--
components: Tests
messages: 400697
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Simplify RegressionTestResult
type: enhancement

___
Python tracker 

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



Re: src layout for projects seems not so popular

2021-08-31 Thread Abdur-Rahmaan Janhangeer
Also a takeaway from my package experience is that even though __init__.py
is
not needed for module import, it's still needed for packaging (py3.8). Find
won't
find the module else.

Kind Regards,

Abdur-Rahmaan Janhangeer
about  | blog

github 
Mauritius
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45054] json module should issue warning about duplicate keys

2021-08-31 Thread Kevin Mills


Kevin Mills  added the comment:

Sorry to the people I'm pinging, but I just noticed the initial dictionary in 
my example code is wrong. I figured I should fix it before anybody tested it 
and got confused about it not matching up with my description of the results.

It should've been:

import json
d1 = {"1": "fromstring", 1: "fromnumber"}
string = json.dumps(d1)
print(string)
d2 = json.loads(string)
print(d2)

--

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-31 Thread Ned Deily


Ned Deily  added the comment:

PRs merged in 3.7 branch for release in 3.7.12 and in 3.6 branch for release in 
3.6.15.

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



src layout for projects seems not so popular

2021-08-31 Thread Abdur-Rahmaan Janhangeer
Greetings list,

Just an observation. Out of Github's trending repos for
Python for today, I could find only 2 repos using the src layout.
Matplotlib and another one.
https://github.com/trending/python?since=daily

Kind Regards,

Abdur-Rahmaan Janhangeer
about  | blog

github 
Mauritius
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-31 Thread Ned Deily


Ned Deily  added the comment:


New changeset 910886a6448e4bf1edf49eeace4aa240b6403772 by Ned Deily in branch 
'3.6':
[3.6] bpo-44394: Update libexpat copy to 2.4.1 (GH-26945) (GH-28042) (GH-28080)
https://github.com/python/cpython/commit/910886a6448e4bf1edf49eeace4aa240b6403772


--

___
Python tracker 

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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-08-31 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +26523
pull_request: https://github.com/python/cpython/pull/28080

___
Python tracker 

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



[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2021-08-31 Thread Ned Deily


Ned Deily  added the comment:

I decided to also backport this fix for 3.6.15 since the problem causes test 
hangs when using GCC 10, as is now that case on one of my test machines. Note 
that the devguide says: "You should also consider fixing hard-failing tests in 
open security branches since it is important to be able to run the tests 
successfully before releasing."

https://devguide.python.org/devcycle/#security-branches

--
versions: +Python 3.6

___
Python tracker 

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



[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2021-08-31 Thread Ned Deily


Ned Deily  added the comment:


New changeset 8934bb0c3179e4c020cd6f08dea64bccbf56ffa2 by Miss Islington (bot) 
in branch '3.6':
bpo-38965: Fix faulthandler._stack_overflow() on GCC 10 (GH-17467) (GH-28079)
https://github.com/python/cpython/commit/8934bb0c3179e4c020cd6f08dea64bccbf56ffa2


--
nosy: +ned.deily

___
Python tracker 

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



[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2021-08-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26522
pull_request: https://github.com/python/cpython/pull/28079

___
Python tracker 

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



<    1   2   3