- 06 Jul, 2019 4 commits
-
-
Terry Jan Reedy authored
0 is a legal index.
-
Tal Einat authored
This is done to compensate for the extra stack frames added by IDLE itself, which cause problems when setting the recursion limit to low values. This wraps sys.setrecursionlimit() and sys.getrecursionlimit() as invisibly as possible.
-
Terry Jan Reedy authored
Also fix a name misspelling.
-
Hai Shi authored
-
- 05 Jul, 2019 9 commits
-
-
Min ho Kim authored
-
Hansraj Das authored
* accross -> across * Extra space removed in comment
-
Kyle Stanley authored
-
Jeroen Demeyer authored
-
Victor Stinner authored
multiprocessing tests now stop the ForkServer instance if it's running: close the "alive" file descriptor to ask the server to stop and then remove its UNIX address.
-
Jeroen Demeyer authored
-
Jeroen Demeyer authored
-
Victor Stinner authored
The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead.
-
Tim Hoffmann authored
-
- 04 Jul, 2019 6 commits
-
-
thatneat authored
* bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__
-
Victor Stinner authored
To get more info about this change.
-
Jeroen Demeyer authored
-
Jeroen Demeyer authored
-
Victor Stinner authored
Fix multiprocessing.util.get_temp_dir() finalizer: clear also the 'tempdir' configuration of the current process, so next call to get_temp_dir() will create a new temporary directory, rather than reusing the removed temporary directory.
-
aldwinaldwin authored
* bpo-37459: importlib docs improperly reference get_resource_loader()
-
- 03 Jul, 2019 8 commits
-
-
Kyle Stanley authored
Replacing the deprecated method "random.choose" to "random.choice" was technically not part of the original issue. However, it was discussed in the talk page and involved one of the files being moved. I assumed this was too minor to justify the creation of a separate issue. Also, I added my name to the contributors list in Misc/ACKS. This will be my third PR to cpython, forgot to do it in the previous ones. https://bugs.python.org/issue19696
-
Jeroen Demeyer authored
-
Jeroen Demeyer authored
-
Victor Stinner authored
test_distutils.test_build_ext() is now able to remove the temporary directory on Windows: don't import the newly built C extension ("xx") in the current process, but test it in a separated process.
-
Victor Stinner authored
test_concurrent_futures now cleans up multiprocessing to remove immediately temporary directories created by multiprocessing.util.get_temp_dir(). The test now uses setUpModule() and tearDownModule().
-
Victor Stinner authored
test_winconsoleio doesn't leak a temporary file anymore: use tempfile.TemporaryFile() to remove it when the test completes.
-
ILJI CHOI authored
-
Hai Shi authored
-
- 02 Jul, 2019 7 commits
-
-
Christian Heimes authored
ssl.match_hostname() no longer accepts IPv4 addresses with additional text after the address and only quad-dotted notation without trailing whitespaces. Some inet_aton() implementations ignore whitespace and all data after whitespace, e.g. '127.0.0.1 whatever'. Short notations like '127.1' for '127.0.0.1' were already filtered out. The bug was initially found by Dominik Czarnota and reported by Paul Kehrer. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37463
-
Victor Stinner authored
urllib.request tests now call urlcleanup() to remove temporary files created by urlretrieve() tests and to clear the _opener global variable set by urlopen() and functions calling indirectly urlopen(). regrtest now checks if urllib.request._url_tempfiles and urllib.request._opener are changed by tests.
-
Victor Stinner authored
multiprocessing tests now call explicitly _run_finalizers() to remove immediately temporary directories created by multiprocessing.util.get_temp_dir().
-
Jakub Kulík authored
Python initialization now ensures that sys stream encoding names are always normalized by codecs.lookup(encoding).name. Simplify test_c_locale_coercion: it doesn't have to normalize encoding names anymore.
-
Jeroen Demeyer authored
-
Ned Deily authored
Under some conditions the earlier fix for bpo-18075, "Infinite recursion tests triggering a segfault on Mac OS X", now causes failures on macOS when attempting to change stack limit with resource.setrlimit resource.RLIMIT_STACK, like regrtest does when running the test suite. The reverted change had specified a non-default stack size when linking the python executable on macOS. As of macOS 10.14.4, the previous code causes a hard failure when running tests, although similar failures had been seen under some conditions under some earlier systems. Reverting the change to the interpreter stack size at link time helped for release builds but caused some tests to fail when built --with-pydebug. Try the opposite approach: continue to build the interpreter with an increased stack size on macOS and remove the failing setrlimit call in regrtest initialization. This will definitely avoid the resource.RLIMIT_STACK error and should have no, or fewer, side effects.
-
Benjamin Peterson authored
-
- 01 Jul, 2019 6 commits
-
-
Steve Dower authored
-
Vinay Sajip authored
-
Victor Stinner authored
Stop using "static PyConfig", PyConfig must now always use dynamically allocated strings: use PyConfig_SetString(), PyConfig_SetArgv() and PyConfig_Clear().
-
Vinay Sajip authored
-
Victor Stinner authored
-
Victor Stinner authored
-