[pypy-commit] [Git][pypy/pypy][branch/py3.6] 85 commits: update to v2.7.16

Matti Picus foss at heptapod.net
Sun Oct 11 01:36:31 EDT 2020



Matti Picus pushed to branch branch/py3.6 at PyPy / pypy


Commits:
1794dd2c by Matti Picus at 2019-05-20T12:55:24+03:00
update to v2.7.16

--HG--
branch : vendor/stdlib

- - - - -
62d4a706 by Matti Picus at 2019-05-20T12:56:07+03:00
add how-to-update

--HG--
branch : vendor/stdlib

- - - - -
4c2d1029 by Michał Górny at 2020-09-28T09:28:36+02:00
update stdlib to v2.7.18-3-g138e2caeb4

--HG--
branch : vendor/stdlib

- - - - -
2e7012c8 by Michał Górny at 2020-09-28T10:51:59+02:00
start stdlib-2.7.18-3 branch

--HG--
branch : stdlib-2.7.18-3

- - - - -
f67b9ed9 by Michał Górny at 2020-09-28T10:45:03+02:00
merge vendor/stdlib

--HG--
branch : stdlib-2.7.18-3

- - - - -
f0618030 by Michał Górny at 2020-09-29T15:24:42+02:00
fix mistakenly readded py2.7 import from weakref.py

--HG--
branch : stdlib-2.7.18-3

- - - - -
049ea398 by Michał Górny at 2020-09-29T15:25:00+02:00
add new py2.7 tests to conftest

--HG--
branch : stdlib-2.7.18-3

- - - - -
94e8d8ee by Michał Górny at 2020-09-29T16:31:50+02:00
test_syntax: Fix doctest exception message to match pypy

--HG--
branch : stdlib-2.7.18-3

- - - - -
5ee9c187 by Michał Górny at 2020-09-29T17:31:21+02:00
test_thread: fix pypy gc collection lost on update, caused test to hang

--HG--
branch : stdlib-2.7.18-3

- - - - -
2f9bea3f by Michał Górny at 2020-09-29T21:39:55+02:00
test_time: fix exception compatibility with pypy

--HG--
branch : stdlib-2.7.18-3

- - - - -
07d02be9 by Michał Górny at 2020-09-29T21:43:20+02:00
test_xml_etree.py: fix test failure due to refcounting impl detail

--HG--
branch : stdlib-2.7.18-3

- - - - -
d45eb67d by Stefano Rivera at 2020-10-02T13:06:56-07:00
bpo-38535: Fix positions for AST nodes for calls without arguments in decorators

--HG--
branch : stdlib-2.7.18-3

- - - - -
eef497d7 by Stefano Rivera at 2015-06-05T20:32:17+02:00
bytearray(obj) should call obj.__index__() instead of obj.__int__().

adapted from b84f64795e2b in the py3k branch

--HG--
branch : stdlib-2.7.18-3

- - - - -
5374494e by Stefano Rivera at 2020-10-02T17:40:25-07:00
Update _testcapimodule to 2.7.18

Skip test_long_as_unsigned_long_long_mask as it currently segfaults

--HG--
branch : stdlib-2.7.18-3

- - - - -
8a37c310 by Ronan Lamy at 2019-10-16T16:48:28+01:00
Fix range checking in GB18030 decoder (bpo-29990)

--HG--
branch : stdlib-2.7.18-3

- - - - -
64ab68e9 by Ronan Lamy at 2019-10-16T17:57:57+01:00
Fix handling escape characters in HZ codec (bpo-30003)

--HG--
branch : stdlib-2.7.18-3

- - - - -
a9fb5988 by Stefano Rivera at 2020-10-02T22:06:02-07:00
Handle NULL argument to PyLong_AsUnsignedLongLongMask

As used in test_long_as_unsigned_long_long_mask in _testcapimodule

--HG--
branch : stdlib-2.7.18-3

- - - - -
457bbd3b by Stefano Rivera at 2020-10-02T21:39:21-07:00
Swallow exceptions in PySlice_GetIndices

PySlice_GetIndicesEx is the improved version that raises exceptions.

As the cPython docs say:

> Returns 0 on success and -1 on error with no exception set (unless one of the
> indices was not None and failed to be converted to an integer, in
> which case -1 is returned with an exception set).
>
> You probably do not want to use this function. If you want to use slice
> objects in versions of Python prior to 2.3, you would probably do well to
> incorporate the source of PySlice_GetIndicesEx(), suitably renamed, in the
> source of your extension.

--HG--
branch : stdlib-2.7.18-3

- - - - -
d4de7d26 by Stefano Rivera at 2020-10-02T21:24:16-07:00
PyBuffer_To/FromContiguous were implemented in 94ab09b73962

--HG--
branch : stdlib-2.7.18-3

- - - - -
32d0cb16 by Stefano Rivera at 2020-10-02T18:15:37-07:00
Update _ctypes_test to 2.7.18

--HG--
branch : stdlib-2.7.18-3

- - - - -
54c76ca0 by Ronan Lamy at 2020-05-27T17:57:16+01:00
Ensure correct PEP3118 codes for primitive ctypes types (cf. bpo-10746)

--HG--
branch : stdlib-2.7.18-3

- - - - -
b47c45b9 by Matti Picus at 2019-08-25T10:36:16+03:00
cpython3 compatibility for raising when calling methods on abstract classes

--HG--
branch : stdlib-2.7.18-3

- - - - -
2b6d8a98 by Stefano Rivera at 2020-10-05T18:42:38-07:00
Return a TypeError like cpython would if a timedelta argument doesn't divmod correctly

Handle the ridiculous __divmod__ results that
test_datetime.TestTimeDelta.test_issue31752 uses.

This doesn't really matters in PyPy, we aren't triggering an interpreter
failure here like cPython.

--HG--
branch : stdlib-2.7.18-3

- - - - -
161339fe by Richard Plangger at 2017-02-27T18:55:01+01:00
(ronan, plan_rich) fix descriptor invocation inside the descr_call of W_TypeObject

--HG--
branch : stdlib-2.7.18-3

- - - - -
8750999f by Stefano Rivera at 2020-10-05T20:06:39-07:00
Fix test_dict failures from bpo-27945 tests

As-applied to py3.6 in 63c246992f08

--HG--
branch : stdlib-2.7.18-3

- - - - -
b0ddceb1 by Stefano Rivera at 2020-10-05T20:14:38-07:00
Handle PyPy's magic offset from cPython (bpo-29514)

--HG--
branch : stdlib-2.7.18-3

- - - - -
1d2da07e by Stefano Rivera at 2020-10-05T20:34:12-07:00
Reapply c8d93fa469ba, dropped in d147d3b422d7

> Fix the cpython test for newer pypy versions, with a comment

--HG--
branch : stdlib-2.7.18-3

- - - - -
28ac5015 by Ronan Lamy at 2019-08-08T15:59:45+01:00
Fix bpo-25862

--HG--
branch : stdlib-2.7.18-3

- - - - -
77aa9687 by Matti Picus at 2020-10-06T11:06:01+03:00
backport fix for CVE-2019-5010, cpython issue 35746

--HG--
branch : stdlib-2.7.18-3

- - - - -
25a8a06c by Matti Picus at 2020-10-06T11:26:47+03:00
fix incompatibility with ssl context defaults

--HG--
branch : stdlib-2.7.18-3

- - - - -
8067c535 by Stefano Rivera at 2020-10-06T16:11:46-07:00
CPython compatibility: IOBase.readlines() should rely on the iterator protocol instead of calling readline() directly
(grafted from 7b9b2790269b94ca9ade16847146b5f566502b9d)

--HG--
branch : stdlib-2.7.18-3

- - - - -
91436581 by Stefano Rivera at 2020-10-06T16:12:11-07:00
Ensure that IOBase.readlines() uses overridden __iter__ or __next__ in all cases

Grafted from 768e7e44eb1eb061d36c385d7e77be800942f402 and eb1aa8262e34.

--HG--
branch : stdlib-2.7.18-3

- - - - -
2a6b624d by Stefano Rivera at 2020-10-07T12:10:22-07:00
Reject environmnet variables containing =

Adapted from 1697fc0bff5dd60fd0ed4149b238a21a3485a38d
> Issue 3136: Windows: os.putenv()

--HG--
branch : stdlib-2.7.18-3

- - - - -
cda8f65e by Stefano Rivera at 2020-10-07T12:37:58-07:00
prevent re-entrant use of iterator in itertools.tee, bpo-34410

(adapted from cd1115f6c1fd3f0840a57f26e79dde4fc5e39c99)

--HG--
branch : stdlib-2.7.18-3

- - - - -
467c9f9f by Stefano Rivera at 2020-10-07T17:08:13-07:00
Leave internal state unchanged if _random.Random.setstate() raises an exception (bpo-29960)
(grafted from 2cbe9ff660033e5af4ea7e99b5d6584853fcee53)

--HG--
branch : stdlib-2.7.18-3

- - - - -
6bddfd52 by Stefano Rivera at 2020-10-07T17:13:54-07:00
_sqlite.Cursor: add relevant part of __check_cursor to close()
(grafted from ff4600cfa35e31384ae6c55c7d9b5f21f9aca5bc)

--HG--
branch : stdlib-2.7.18-3

- - - - -
8183c825 by Stefano Rivera at 2020-10-07T17:30:29-07:00
test, fix error message for CPython compatibility

Picked up from bpo-34052's new tests.
(grafted from 2e89e7ae99c0e9568ad1cf8266f6ad10584e8585)

--HG--
branch : stdlib-2.7.18-3

- - - - -
44302b30 by Stefano Rivera at 2020-10-07T17:39:20-07:00
This is Python 2.x not 3, encode unicode filenames (bpo-25404)

--HG--
branch : stdlib-2.7.18-3

- - - - -
82078b62 by Stefano Rivera at 2020-10-07T17:48:38-07:00
test: Skip bpo-33817 test that uses pythonapi

--HG--
branch : stdlib-2.7.18-3

- - - - -
97f8a66d by Stefano Rivera at 2020-10-07T19:24:51-07:00
Fix the bpo-30730 test (invalid env vars in subprocess) in the posix implementation

--HG--
branch : stdlib-2.7.18-3

- - - - -
a3b58b5c by Stefano Rivera at 2020-10-07T19:53:31-07:00
test: pypy's exception message differs

--HG--
branch : stdlib-2.7.18-3

- - - - -
6cacdb12 by Stefano Rivera at 2020-10-07T19:53:42-07:00
test: Add an explicit garbage collection to trigger weakref death

--HG--
branch : stdlib-2.7.18-3

- - - - -
5020ad6b by Stefano Rivera at 2020-10-07T20:47:49-07:00
Skip tests: PyPy can pickle iterators

--HG--
branch : stdlib-2.7.18-3

- - - - -
89bb3278 by Stefano Rivera at 2020-10-07T20:48:35-07:00
Explicitly skip cElementTree MiscTests. cElementTree is importable under PyPy, but isn't implemented in C

--HG--
branch : stdlib-2.7.18-3

- - - - -
1c0496fe by Stefano Rivera at 2020-10-07T22:13:31-07:00
Revert 8f04b833f59a, superseded by bpo-30365

--HG--
branch : stdlib-2.7.18-3

- - - - -
1429b4e8 by Stefano Rivera at 2020-10-07T22:32:38-07:00
PyPy's parser has always pointed to the start of the token, not the end

cPython >= 3.8 has now followed in bpo-34683.

--HG--
branch : stdlib-2.7.18-3

- - - - -
e53b3dde by Stefano Rivera at 2020-10-07T22:44:58-07:00
Explicitly disable cElementTree tests more effectively (so @cet_only works)

Backed out changeset 2dbf44ce2b79

--HG--
branch : stdlib-2.7.18-3

- - - - -
881b7c78 by Stefano Rivera at 2020-10-08T23:48:47-07:00
Temporary: app_test for sys_settrace

--HG--
branch : stdlib-2.7.18-3

- - - - -
75ea3bc4 by Stefano Rivera at 2020-10-08T20:01:05-07:00
cpython compatibility
(grafted from c9039acb3770b3f29467dd7d220d2e7e620f1939)

--HG--
branch : stdlib-2.7.18-3

- - - - -
27065ba7 by Matti Picus at 2020-10-09T09:09:15+03:00
typo

- - - - -
8c29f859 by Stefano Rivera at 2020-10-09T00:16:56-07:00
bpo-17288: Prevent jumps from 'return' and 'exception' trace events.

Adapted from 29268d8eba51

--HG--
branch : stdlib-2.7.18-3

- - - - -
afa45571 by Stefano Rivera at 2020-10-09T01:02:39-07:00
bpo-33026: Fix jumping out of "with" block by setting f_lineno

Adapted from 29268d8eba51

--HG--
branch : stdlib-2.7.18-3

- - - - -
e20c5ce6 by Stefano Rivera at 2020-10-09T07:54:08-07:00
Backed out changeset 396185377e61

Whoops, meant to strip that before pushing

--HG--
branch : stdlib-2.7.18-3

- - - - -
2cdce53c by Stefano Rivera at 2020-10-09T08:19:20-07:00
Check return value of decoder.getstate()
(grafted from c795f015ed3622fec95ddaba460f87e197a8a736)

--HG--
branch : stdlib-2.7.18-3

- - - - -
e4d87836 by Stefano Rivera at 2020-10-09T08:41:16-07:00
bpo-31271: A TypeError should be raised in case the return value of encoder's encode() is invalid.

--HG--
branch : stdlib-2.7.18-3

- - - - -
9ad9e775 by Stefano Rivera at 2020-10-09T09:56:42-07:00
Replace more test_support with support. Bad merge?

--HG--
branch : stdlib-2.7.18-3

- - - - -
43047ca2 by Stefano Rivera at 2020-10-09T10:02:19-07:00
fix test
(grafted from c8644313626b882272ff489a1a4c8eca55a58426)

--HG--
branch : stdlib-2.7.18-3

- - - - -
ff414866 by Stefano Rivera at 2020-10-09T11:22:08-07:00
test_multiprocessing: pypy's GC doesn't have {get,set}_threshold

--HG--
branch : stdlib-2.7.18-3

- - - - -
d812baf0 by Stefano Rivera at 2020-10-09T11:29:21-07:00
test_multiprocessing: Sprinkle some explicit GC collection into tests expecting weakref cleanup

--HG--
branch : stdlib-2.7.18-3

- - - - -
22f9a6f1 by Stefano Rivera at 2020-10-09T16:31:09-07:00
This is Python 2, no f-strings yet

--HG--
branch : stdlib-2.7.18-3

- - - - -
f69fc4a7 by Stefano Rivera at 2020-10-09T17:58:40-07:00
blind commit: Hopefully fixing test.test_tcl.TclTest.test_getint on linux32

--HG--
branch : stdlib-2.7.18-3

- - - - -
13debb05 by Stefano Rivera at 2020-10-09T18:01:52-07:00
OveflowError is raised on 32bit systems

--HG--
branch : stdlib-2.7.18-3

- - - - -
88f98511 by Stefano Rivera at 2020-10-09T18:14:07-07:00
bpo-30807: signal.setitimer() may disable the timer by mistake

--HG--
branch : stdlib-2.7.18-3

- - - - -
69cbbe98 by Stefano Rivera at 2020-10-09T22:52:31-07:00
ctypes: Pass structs by value

Picked up on arm64, thanks to the test from bpo-29565.

--HG--
branch : stdlib-2.7.18-3

- - - - -
d60906d4 by Stefano Rivera at 2020-10-09T23:34:48-07:00
bpo-30058: Fixed buffer overflow in select.kqueue.control().

--HG--
branch : stdlib-2.7.18-3

- - - - -
3e76cf42 by Stefano Rivera at 2020-10-09T23:47:58-07:00
merge default into stdlib-2.7.18-3

--HG--
branch : stdlib-2.7.18-3

- - - - -
119699b4 by Stefano Rivera at 2020-10-10T00:07:05-07:00
getsockopt(): For boolean options, non-zero vales are true

On MacOS, TCP_NODELAY was returning 4.

- - - - -
6f9118ce by Stefano Rivera at 2020-10-10T00:21:27-07:00
You can't rely on SO_RCVBUF & SO_SNDBUF, MacOS will auto-tune them up to 512k

- - - - -
e8fd41bb by Stefano Rivera at 2020-10-10T00:26:19-07:00
Case-insensitive encoding comparison

>>>> sys.getfilesystemencoding()
'utf-8'

- - - - -
c4f94e47 by Stefano Rivera at 2020-10-10T00:38:10-07:00
wait3() on MacOS ignores invalid options

- - - - -
88a177ce by Stefano Rivera at 2020-10-10T00:52:19-07:00
This test failure is known MacOS issue. We'll just have to live with a more limited test on MacOS

- - - - -
c504a6cd by Stefano Rivera at 2020-10-10T09:02:44-07:00
Drop -n, on MacOS, the builtin echo in sh doesn't support -n

- - - - -
da4d2ab5 by Stefano Rivera at 2020-10-10T09:04:34-07:00
We now have an nt_pypy scheme

- - - - -
d6f75db6 by Stefano Rivera at 2020-10-10T09:38:55-07:00
merge default into stdlib-2.7.18-3

--HG--
branch : stdlib-2.7.18-3

- - - - -
89482fbc by Matti Picus at 2020-10-10T22:03:40+03:00
close branch to be merged

--HG--
branch : stdlib-2.7.18-3

- - - - -
3d0ea6aa by Matti Picus at 2020-10-10T22:04:11+03:00
merge stdlib-2.7.18-3 which updates stdlib

- - - - -
2f1b824f by Stefano Rivera at 2020-10-10T13:13:34-07:00
bpo-35194: Fix a wrong constant in cp932 codec.

- - - - -
3b0a9c0d by Stefano Rivera at 2020-10-10T13:16:02-07:00
bpo-34794: Fix a leak in Tkinter.

- - - - -
39d38bc9 by Stefano Rivera at 2020-10-10T13:18:15-07:00
cpython GH-6028: Fix error message in sqlite connection thread check.

- - - - -
4e8933c4 by Stefano Rivera at 2020-10-10T13:20:32-07:00
bpo-29004: Document binascii.crc_hqx() implements CRC-CCITT

- - - - -
3b3f780d by Stefano Rivera at 2020-10-10T13:54:28-07:00
bpo-33781: audioop: enhance rounding double as int

- - - - -
fad5a5d5 by Matti Picus at 2020-10-11T08:09:54+03:00
merge default into py3.6

--HG--
branch : py3.6

- - - - -
cb30e4d7 by Matti Picus at 2020-10-11T08:11:08+03:00
merge default into py3.6, discarding changes from stdlib-2.7.18-3

--HG--
branch : py3.6

- - - - -
65d6e77f by Matti Picus at 2020-10-11T08:22:46+03:00
check for None in PyLong_AsUnsignedLongLong

- - - - -
9863b5b9 by Matti Picus at 2020-10-11T08:24:29+03:00
merge default into py3.6

--HG--
branch : py3.6

- - - - -


9 changed files:

- extra_tests/test_os.py
- lib_pypy/_audioop_build.py
- lib_pypy/_tkinter/tclobj.py
- pypy/module/_multibytecodec/src/cjkcodecs/_codecs_jp.c
- pypy/module/_socket/test/test_sock_app.py
- pypy/module/binascii/interp_hqx.py
- pypy/module/cpyext/longobject.py
- pypy/module/test_lib_pypy/test_os_wait.py
- pypy/objspace/std/test/test_newformat.py


View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/18207aa37e6a6db3132d005fb92180913771b920...9863b5b9af4917c323f4e5ef5953fec75792bc1b

-- 
View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/18207aa37e6a6db3132d005fb92180913771b920...9863b5b9af4917c323f4e5ef5953fec75792bc1b
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-commit/attachments/20201011/1f4a0f1c/attachment-0001.html>


More information about the pypy-commit mailing list