Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit c4a2190

Browse files
author
Anselm Kruis
committed
Merge tag v3.6.10 into branch 3.6-slp.
2 parents 4e8b887 + 02dff8b commit c4a2190

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: c
2-
dist: trusty
3-
sudo: false
4-
group: beta
2+
dist: xenial
53

64
# To cache doc-building dependencies and C compiler output.
75
cache:

Doc/whatsnew/3.6.rst

+10
Original file line numberDiff line numberDiff line change
@@ -2449,3 +2449,13 @@ In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
24492449
when provided with input that does not have a trailing new line. This behavior
24502450
now matches what the C tokenizer does internally.
24512451
(Contributed by Ammar Askar in :issue:`33899`.)
2452+
2453+
Notable changes in Python 3.6.10
2454+
================================
2455+
2456+
Due to significant security concerns, the *reuse_address* parameter of
2457+
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This is
2458+
because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For more
2459+
details, see the documentation for ``loop.create_datagram_endpoint()``.
2460+
(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in
2461+
:issue:`37228`.)

Include/patchlevel.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 6
2121
#define PY_MICRO_VERSION 10
22-
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_GAMMA
23-
#define PY_RELEASE_SERIAL 1
22+
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
23+
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.6.10rc1"
26+
#define PY_VERSION "3.6.10"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/test/test_asyncio/test_base_events.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,10 @@ def test_create_datagram_endpoint_reuse_address_warning(self):
17081708
reuse_address=False)
17091709

17101710
with self.assertWarns(DeprecationWarning):
1711-
self.loop.run_until_complete(coro)
1711+
transport, protocol = self.loop.run_until_complete(coro)
1712+
transport.close()
1713+
self.loop.run_until_complete(protocol.done)
1714+
self.assertEqual('CLOSED', protocol.state)
17121715

17131716
@patch_socket
17141717
def test_create_datagram_endpoint_nosoreuseport(self, m_socket):
@@ -1718,7 +1721,6 @@ def test_create_datagram_endpoint_nosoreuseport(self, m_socket):
17181721
coro = self.loop.create_datagram_endpoint(
17191722
lambda: MyDatagramProto(loop=self.loop),
17201723
local_addr=('127.0.0.1', 0),
1721-
reuse_address=False,
17221724
reuse_port=True)
17231725

17241726
self.assertRaises(ValueError, self.loop.run_until_complete, coro)
@@ -1737,7 +1739,6 @@ def getaddrinfo(*args, **kw):
17371739
coro = self.loop.create_datagram_endpoint(
17381740
lambda: MyDatagramProto(loop=self.loop),
17391741
local_addr=('1.2.3.4', 0),
1740-
reuse_address=False,
17411742
reuse_port=reuseport_supported)
17421743

17431744
t, p = self.loop.run_until_complete(coro)

Lib/test/test_py_compile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class PyCompileTests(unittest.TestCase):
1414

1515
def setUp(self):
16-
self.directory = tempfile.mkdtemp()
16+
self.directory = tempfile.mkdtemp(dir=os.getcwd())
1717
self.source_path = os.path.join(self.directory, '_test.py')
1818
self.pyc_path = self.source_path + 'c'
1919
self.cache_path = importlib.util.cache_from_source(self.source_path)

Misc/NEWS.d/3.6.10.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. bpo: 38295
2+
.. date: 2019-12-17-03-43-04
3+
.. nonce: hgDvlB
4+
.. release date: 2019-12-18
5+
.. section: macOS
6+
7+
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
This is Python version 3.6.10 candidate 1
2-
=========================================
1+
This is Python version 3.6.10
2+
=============================
33

44
.. image:: https://travis-ci.org/python/cpython.svg?branch=3.6
55
:alt: CPython build status on Travis CI

0 commit comments

Comments
 (0)