Zackery Spytz
fe3e6d1b76
bpo-6699: IDLE: Warn the user if a file will be overwritten when saving
...
Co-Authored-By: Guilherme Polo <ggpolo@gmail.com>
Co-Authored-By: Priya Pappachan <priyapappachan010@gmail.com>
2019-12-12 03:18:31 -07:00
Victor Stinner
7772b1af5e
bpo-38614: Use support timeout constants (GH-17572)
2019-12-11 22:17:04 +01:00
Victor Stinner
0d63bacefd
bpo-38614: Use test.support.SHORT_TIMEOUT constant (GH-17566)
...
Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
SHORT_TIMEOUT is 30 seconds by default, but it can be longer
depending on --timeout command line option.
The change makes almost all timeouts longer, except
test_reap_children() of test_support which is made 2x shorter:
SHORT_TIMEOUT should be enough. If this test starts to fail,
LONG_TIMEOUT should be used instead.
Uniformize also "from test import support" import in some test files.
2019-12-11 11:30:03 +01:00
Jason R. Coombs
b7a0109cd2
bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 (GH-17568)
...
* bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 including improved docs for custom finders and better serialization support in EntryPoints.
* 📜 🤖 Added by blurb_it.
* Correct module reference
2019-12-10 20:05:10 -05:00
Steve Dower
d0802d07d2
bpo-39012: Fix RC version suffix for nuget release files (GH-17564)
2019-12-10 15:19:03 -08:00
Victor Stinner
1d0f9b316a
bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)
...
Replace hardcoded timeout constants in tests with INTERNET_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
2019-12-10 22:09:23 +01:00
Victor Stinner
c98b0199a9
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
...
Replace hardcoded timeout constants in tests with LONG_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
LONG_TIMEOUT is 5 minutes by default, but it can be longer depending
on --timeout command line option.
2019-12-10 21:12:26 +01:00
Victor Stinner
bbc8b7965b
bpo-38614: Use default join_thread() timeout in tests (GH-17559)
...
Tests no longer pass a timeout value to join_thread() of
test.support: use the default join_thread() timeout instead
(SHORT_TIMEOUT constant of test.support).
2019-12-10 20:41:23 +01:00
Victor Stinner
07871b256c
bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)
...
Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
2019-12-10 20:32:59 +01:00
Pablo Galindo
680068c288
Minor fixes to the NEWS entries (GH-17556)
2019-12-10 16:09:58 +00:00
Giampaolo Rodola
82374979ec
bpo-39004: increment large sendfile() test timeout (GH-17552)
2019-12-10 17:31:06 +08:00
Steve Dower
abdeb57a21
Fix Windows release builds (GH-17550)
2019-12-09 21:10:22 -08:00
Pablo Galindo
e9df88e8e9
Clean imports in test_unparse (GH-17545)
2019-12-10 00:37:47 +00:00
JohnnyNajera
bbc4162baf
bpo-38943: Fix IDLE autocomplete window not always appearing (GH-17416)
...
This has happened on some versions of Ubuntu.
2019-12-09 19:30:01 -05:00
JohnnyNajera
232689b40d
bpo-38944: Escape key now closes IDLE completion windows. (GH-17419)
2019-12-09 18:22:16 -05:00
Tim Gates
2ad7651c00
bpo-39009: Fix typo in test__locale (GH-17544)
2019-12-09 22:16:00 +00:00
Sergey Fedoseev
a2ff283d51
bpo-27961: Replace PY_ULLONG_MAX with ULLONG_MAX (GH-17539)
2019-12-09 21:22:19 +01:00
Steve Dower
ee17e37356
bpo-39007: Add auditing events to functions in winreg (GH-17541)
...
Also allows winreg.CloseKey() to accept same types as other functions.
2019-12-09 11:18:12 -08:00
Steve Dower
b8cbe74c34
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)
2019-12-09 11:05:39 -08:00
Pablo Galindo
ac229116a3
bpo-39003: Make sure all test are the same when using -R in test_unparse (GH-17537)
2019-12-09 17:57:50 +00:00
Tim Gates
c18b805ac6
bpo-39002: Fix simple typo: tranlation -> translation (GH-17517)
2019-12-09 09:42:17 -08:00
Steve Dower
e89e159b18
Fix APPX registry key generation (GH-17489)
2019-12-09 08:43:13 -08:00
Victor Stinner
a1a99b4bb7
bpo-20443: No longer make sys.argv[0] absolute for script (GH-17534)
...
In Python 3.9.0a1, sys.argv[0] was made an asolute path if a filename
was specified on the command line. Revert this change, since most
users expect sys.argv to be unmodified.
2019-12-09 17:34:02 +01:00
Yury Selivanov
d219cc4180
bpo-34776: Fix dataclasses to support __future__ "annotations" mode ( #9518 )
2019-12-09 15:54:20 +01:00
Mark Dickinson
bba873e633
bpo-38992: avoid fsum test failure from constant-folding (GH-17513)
...
* Issue 38992: avoid fsum test failure
* Add NEWS entry
2019-12-09 08:36:34 -06:00
Kyle Stanley
ab513a38c9
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR ( #17311 )
2019-12-09 15:21:10 +01:00
Victor Stinner
82b4950b5e
bpo-39006: Fix asyncio when the ssl module is missing (GH-17524)
...
Fix asyncio when the ssl module is missing: only check for
ssl.SSLSocket instance if the ssl module is available.
2019-12-09 15:02:03 +01:00
Victor Stinner
0131aba5ae
bpo-38916: array.array: remove fromstring() and tostring() (GH-17487)
...
array.array: Remove tostring() and fromstring() methods. They were
aliases to tobytes() and frombytes(), deprecated since Python 3.2.
2019-12-09 14:09:14 +01:00
Victor Stinner
a1838ec259
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)
...
Fix test_pty: if the process is the session leader, closing the
master file descriptor raises a SIGHUP signal: simply ignore SIGHUP
when running the tests.
2019-12-09 11:57:05 +01:00
Batuhan Taşkaya
109fc2792a
bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421)
...
https://bugs.python.org/issue38673
2019-12-08 20:36:27 -08:00
Abhilash Raj
3ae4ea1931
bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504)
...
Fix a potential IndexError when passing an empty value to the message-id
parser. Instead, HeaderParseError should be raised.
2019-12-08 17:37:34 -08:00
Abhilash Raj
68157da8b4
bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503)
...
This adds a new InvalidMessageID token to the email header parser which can be
used to represent invalid message-id headers in the parse tree.
2019-12-08 17:35:38 -08:00
Victor Stinner
080ee5a884
bpo-38858: Fix ref leak in pycore_interp_init() (GH-17512)
...
bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.
2019-12-08 21:55:58 +01:00
Batuhan Taşkaya
526606baf7
bpo-38994: Implement __class_getitem__ for PathLike (GH-17498)
...
https://bugs.python.org/issue38994
2019-12-08 12:31:15 -08:00
Elena Oat
cd90a52983
bpo-38669: patch.object now raises a helpful error (GH17034)
...
This means a clearer message is now shown when patch.object is called with two string arguments, rather than a class and a string argument.
2019-12-08 20:14:38 +00:00
AMIR
28c91631c2
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
...
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None.
https://bugs.python.org/issue38979
Automerge-Triggered-By: @asvetlov
2019-12-08 03:35:59 -08:00
xdegaye
00ada2c1d5
bpo-38852: Set thread stack size to 8 Mb for debug builds on android platforms (GH-17337)
2019-12-08 08:40:14 +01:00
Victor Stinner
6cac113666
bpo-38991: Remove test.support.strip_python_stderr() (GH-17490)
...
test.support: run_python_until_end(), assert_python_ok() and
assert_python_failure() functions no longer strip whitespaces from
stderr.
2019-12-08 08:38:16 +01:00
Christian Heimes
2b7de6696b
bpo-38820: OpenSSL 3.0.0 compatibility. (GH-17190)
...
test_openssl_version now accepts version 3.0.0.
getpeercert() no longer returns IPv6 addresses with a trailing new line.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue38820
2019-12-07 08:59:36 -08:00
Daniel Himmelstein
15fb7fa881
bpo-29636: json.tool: Add document for indentation options. (GH-17482)
...
And updated test to use subprocess.run
2019-12-07 23:14:40 +09:00
Anj-A
4443450fda
bpo-38652: Remove provisional note for asyncio.BufferedProtocol (GH-17047)
...
https://bugs.python.org/issue38652
2019-12-07 04:53:12 -08:00
idomic
892f9e0777
bpo-37404: Raising value error if an SSLSocket is passed to asyncio functions (GH-16457)
...
https://bugs.python.org/issue37404
2019-12-07 03:52:35 -08:00
Andrew Svetlov
969ae7aca8
Make repr of C accelerated TaskWakeupMethWrapper the same as of pure Python version (GH-17484)
2019-12-07 13:23:21 +02:00
Andrew Svetlov
7ddcd0caa4
bpo-38529: Fix asyncio stream warning (GH-17474)
2019-12-07 13:22:00 +02:00
Batuhan Taşkaya
dec367261e
bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491)
...
https://bugs.python.org/issue38978
2019-12-07 03:05:07 -08:00
Benoit Hudson
723f71abf7
bpo-37931: Fix crash on OSX re-initializing os.environ (GH-15428)
...
On most platforms, the `environ` symbol is accessible everywhere.
In a dylib on OSX, it's not easily accessible, you need to find it with
_NSGetEnviron.
The code was caching the *value* of environ. But a setenv() can change the value,
leaving garbage at the old value. Fix: don't cache the value of environ, just
read it every time.
2019-12-06 20:15:03 +01:00
Victor Stinner
e76ee1a72b
bpo-38982: Fix asyncio PidfdChildWatcher on waitpid() error (GH-17477)
...
If waitpid() is called elsewhere, waitpid() call fails with
ChildProcessError: use return code 255 in this case, and log a
warning. It ensure that the pidfd file descriptor is closed if this
error occurs.
2019-12-06 16:32:41 +01:00
Mario Corchero
b64334cb93
bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)
...
Break cycle generated when saving an exception in socket.py, codeop.py and dyld.py as they keep alive not only the exception but user objects through the ``__traceback__`` attribute.
https://bugs.python.org/issue36820
Automerge-Triggered-By: @pablogsal
2019-12-06 06:27:38 -08:00
wim glenn
efefe25443
bpo-27413: json.tool: Add --no-ensure-ascii option. (GH-17472)
2019-12-06 15:44:01 +09:00
Victor Stinner
d863ade0c7
bpo-38858: Add pycore_interp_init() code to factorize code (GH-17483)
...
Add a new pycore_interp_init() function called by new_interpreter()
and pyinit_config().
2019-12-06 03:37:07 +01:00