summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-29723: Consistently configure sys.path[0] (#636)Nick Coghlan2017-03-211-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | Directory and zipfile execution previously added the parent directory of the directory or zipfile as sys.path[0] and then subsequently overwrote it with the directory or zipfile itself. This caused problems in isolated mode, as it overwrote the "stdlib as a zip archive" entry in sys.path, as the parent directory was never added. The attempted fix to that issue in bpo-29319 created the opposite problem in *non*-isolated mode, by potentially leaving the parent directory on sys.path instead of overwriting it. This change fixes the root cause of the problem by removing the whole "add-and-overwrite" dance for sys.path[0], and instead simply never adds the parent directory to sys.path in the first place. (cherry picked from commit d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d) (cherry picked from commit c60948464fb0ec116ea227f6bce8a4bb8fb75257)
* [3.6] bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS (#463)Ned Deily2017-03-042-0/+5
| | | | | | | Skip some tests of select.poll when running on macOS due to unresolved issues with the underlying system poll function on some macOS versions. (cherry picked from commit de04644627f82d9dc48b3423def7ff5b4aa1926a)
* [3.6] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454)Ned Deily2017-03-041-6/+6
| | | | | | | | | | | * bpo-27593: Get SCM build info from git instead of hg. (#446) sys.version and the platform module python_build(), python_branch(), and python_revision() functions now use git information rather than hg when building from a repo. Based on original patches by Brett Cannon and Steve Dower. (cherry picked from commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178)
* [3.6] bpo-29623: Make PathLike objects work with ConfigParser.read() (#242) ↵Berker Peksag2017-03-031-1/+11
| | | | | | | | | | (#432) (cherry picked from commit 85b8d01c916b482dac937b93ede1e53b1db0361c) Conflicts: Lib/test/test_configparser.py
* Add Python version since deprecation in base64 methods. (#33) (#429)Berker Peksag2017-03-031-0/+8
| | | | | | | Allow developers to not have to either test on N Python versions or looked through multiple versions of the docs to know whether they can easily update. (cherry picked from commit c643a967dd7d33ccefa5b61b38caf40b448057ce)
* bpo-28963: Fix out of bound iteration in ↵Yury Selivanov2017-03-031-0/+29
| | | | asyncio.Future.remove_done_callback/C (#408)
* bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)Seth M. Larson2017-03-031-0/+24
|
* bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406)Yury Selivanov2017-03-031-0/+17
|
* bpo-28893: Set __cause__ for errors in async iteration protocol (#407)Yury Selivanov2017-03-031-0/+38
|
* bpo-29703: asyncio: Fix creating new event loops in child processes. (#404) ↵Yury Selivanov2017-03-031-0/+22
| | | | (#410)
* bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting ↵Martijn Pieters2017-02-271-0/+9
| | | | operations (#95)
* bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-330)Xiang Zhang2017-02-271-0/+3
|
* [3.6] bpo-29110: Fix file object leak in `aifc.open` (#310)INADA Naoki2017-02-261-1/+17
| | | | | (cherry picked from commit 03f68b60e17b57f6f13729ff73245dbb37b30a4c) (GH-162) (cherry picked from commit 5dc33eea538361f8a218255f83db2e9298dd8c53) (GH-293)
* bpo-28624: Add a test that checks that cwd parameter of Popen() accepts ↵Berker Peksag2017-02-261-0/+10
| | | | | PathLike objects (#157) (#323) (cherry picked from commit d5c11f7ace48701bb950c6345deee88c35c66e26)
* [3.6] bpo-28556: Update to typing: treat subscripted generics as proxies ↵Mariatta2017-02-251-0/+35
| | | | | | | (GH-265) (GH-268) (cherry picked from commit abb3b8ad94d699c8560d94ee9bac9c917b382abe) (cherry picked from commit 365cb5bb9069273e6970c9d5d17ee2fe5003e7ac)
* bpo-29532: Altering a kwarg dictionary passed to functools.partial() no ↵Serhiy Storchaka2017-02-211-0/+9
| | | | longer affects a partial object after creation. (#209)
* bpo-29602: fix signed zero handling in complex constructor. (#203) (#206)Mark Dickinson2017-02-201-0/+23
| | | | | | | * Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry. (cherry picked from commit 112ec38c15b388fe025ccb85369a584d218b1160)
* [3.6] bpo-29571: Use correct locale encoding in test_re (#149) (#153)Nick Coghlan2017-02-191-1/+1
| | | | | | | ``local.getlocale(locale.LC_CTYPE)`` and ``locale.getpreferredencoding(False)`` may give different answers in some cases (such as the ``en_IN`` locale). ``re.LOCALE`` uses the latter, so update the test case to match.
* bpo-28556: Various updates to typing (#28) (#77)Mariatta2017-02-142-25/+226
| | | | | | | | | | | | | | various updates from upstream python/typing repo: - Added typing.Counter and typing.ChainMap generics - More flexible typing.NamedTuple - Improved generic ABC caching - More tests - Bugfixes - Other updates * Add Misc/NEWS entry (cherry picked from commit b692dc8475a032740576129d0990ddc3edccab2b)
* Fix test_datetime on WindowsVictor Stinner2017-02-101-2/+3
| | | | | Issue #29100: On Windows, datetime.datetime.fromtimestamp(min_ts) fails with an OSError in test_timestamp_limits().
* Fix test_datetime on system with 32-bit time_tVictor Stinner2017-02-101-3/+7
| | | | Issue #29100: Catch OverflowError in the new test_timestamp_limits() test.
* Fix datetime.fromtimestamp(): check boundsVictor Stinner2017-02-101-0/+36
| | | | | Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check minimum and maximum years.
* Issue #28164: Improves test on Windows 7Steve Dower2017-02-061-16/+22
|
* Updates test_winconsoleio to better show the source of its issues.Steve Dower2017-02-051-15/+27
|
* Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)Steve Dower2017-02-041-13/+27
|
* Issue #28164: Correctly handle special console filenames (patch by Eryk Sun)Steve Dower2017-02-041-1/+27
|
* Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)Steve Dower2017-02-041-1/+19
|
* Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-0/+11
|\
| * Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-0/+11
| |
* | Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-0/+10
|\ \ | |/ | | | | the match object. Based on patch by WGH.
| * Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-0/+10
| | | | | | | | the match object. Based on patch by WGH.
* | Fixes #24875: Merged fix from 3.5.Vinay Sajip2017-02-021-8/+14
|\ \ | |/
| * Fixes #24875: pip can now be installed in a venv with --system-site-packages.Vinay Sajip2017-02-021-9/+16
| |
* | Merge 3.5Victor Stinner2017-02-021-0/+4
|\ \ | |/
| * Issue #29300: test_struct tests unpack_from() with keywordsVictor Stinner2017-02-021-0/+4
| | | | | | | | | | Add an unit test on the _struct.Struct.unpack_from() method to test passing arguments as keywords.
* | closes issue29167: fix race condition in (Int)FlagEthan Furman2017-01-241-2/+88
| |
* | Issue #29337: Fixed possible BytesWarning when compare the code objects.Serhiy Storchaka2017-01-241-0/+3
|\ \ | |/ | | | | Warnings could be emitted at compile time.
| * Issue #29337: Fixed possible BytesWarning when compare the code objects.Serhiy Storchaka2017-01-241-0/+3
| | | | | | | | Warnings could be emitted at compile time.
* | Issues #29273: Merge test___all__ from 3.5Martin Panter2017-01-231-11/+0
|\ \ | |/
| * Issue #29273: Remove unneeded workaround to restore localeMartin Panter2017-01-231-11/+0
| | | | | | | | | | | | The “readline” module already has a workaround using setlocale(LC_CTYPE, NULL). The code in test___all__ calls getlocale(), which can subtly alter the locale string and cause the test framework to complain.
* | Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-231-1/+6
|\ \ | |/ | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
| * Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-231-1/+6
| | | | | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
* | typo fix, extra '.' on MacOS :)Gregory P. Smith2017-01-231-1/+1
|\ \ | |/
| * typo fix, extra '.' :)Gregory P. Smith2017-01-231-1/+1
| |
* | Issue #28556: Allow defining methods in NamedTuple class syntax (#362) ↵Guido van Rossum2017-01-231-5/+27
|\ \ | |/ | | | | (3.5->3.6)
| * Issue #28556: Allow defining methods in NamedTuple class syntax (#362)Guido van Rossum2017-01-231-5/+27
| |
* | Issue #28556: various style fixes for typing.py (3.5->3.6)Guido van Rossum2017-01-231-10/+21
|\ \ | |/
| * Issue #28556: various style fixes for typing.pyGuido van Rossum2017-01-231-10/+21
| |
* | Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-231-0/+41
|\ \ | |/ | | | | exited to a stopped instead of terminated state (ex: when under ptrace).
| * Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-231-0/+41
| | | | | | | | exited to a stopped instead of terminated state (ex: when under ptrace).