Commit Graph

80667 Commits

Author SHA1 Message Date
Miss Islington (bot) 7868426c1f
bpo-33336, imaplib: Legalize MOVE command (GH-6569)
imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.
(cherry picked from commit caa331d492)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
2018-07-23 07:07:03 -07:00
Serhiy Storchaka 46cb5fd706
[2.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396). (GH-8400)
(cherry picked from commit e271ca78e3)
(cherry picked from commit c75c1e0e8a)
2018-07-22 22:15:16 +03:00
Zackery Spytz 041a4ee945 bpo-25943: Check for integer overflow in bsddb's DB_join(). (GH-8392) 2018-07-22 19:53:56 +03:00
Zackery Spytz 3252205077 bpo-25943: Fix potential heap corruption in bsddb's _db_associateCallback() (GH-8337)
There was a missing check for integer overflow, several function calls
were not checked for failure, and allocated memory was not freed if an
error occurred.
2018-07-21 11:27:44 +03:00
Zachary Ware c5bc6e477e
[2.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
(cherry picked from commit b12112b5ba)
2018-07-19 21:51:42 -05:00
Miss Islington (bot) 1fb24b6e83 Clarify ValueError's broad applicability (GH-8313) (GH-8316)
(cherry picked from commit feabae9617)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-07-17 13:23:52 -07:00
Serhiy Storchaka fc153d1279
[2.7] bpo-34068: iobase_close could call PyObject_SetAttrString with an exception set (GH-8282). (GH-8312) (GH-8314)
(cherry picked from commit 28f07364f0)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>.
(cherry picked from commit cc13016658)
2018-07-17 18:15:46 +03:00
Miss Islington (bot) a45fa39d85
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
(cherry picked from commit 993030aac5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-11 14:53:17 -07:00
Serhiy Storchaka ef19fd200d
[2.7] bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192). (GH-8255)
(cherry picked from commit 504373c59b)

Also backport tests for skipitem() and handling errors.
2018-07-11 19:49:17 +03:00
Tal Einat 6f036bb67d
[2.7] bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) (#8225)
Actually just one fix on the 2.7 branch.

Contributed by Bradley Laney.

(cherry picked from commit 6b490b5db4)
2018-07-10 13:28:09 +03:00
Benjamin Peterson dc39a59bc7
[2.7] prefix internal sqlite symbols with _pysqlite_ (GH-8215). (GH-8217)
(cherry picked from commit 7762e4d387)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-07-09 22:36:49 -07:00
Benjamin Peterson 695ecd9dc6
[2.7] delete some unused pysqlite forward declarations (GH-8211). (GH-8214)
(cherry picked from commit d6d4432724)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-07-09 21:12:57 -07:00
Serhiy Storchaka 789f95ac97
[2.7] Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191) (GH-8202)
Fixed also testing the "always" warning filter.
(cherry picked from commit b796e7dcdc)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2018-07-09 20:00:53 +03:00
Serhiy Storchaka b1e6e5615a
bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193) (GH-8196)
(cherry picked from commit 2a9b8babf0).
(cherry picked from commit 7c43b80150)
2018-07-09 14:39:06 +03:00
Miss Islington (bot) 3a98ddd136
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
Make the change where discussing the CPython implementation of lists and dicts.
(cherry picked from commit 8d41278045)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-07-07 16:32:57 -07:00
Benjamin Peterson 3707dfaf45
[2.7] closes bpo-34050: Fix link in SSL docs (GH-8173). (GH-8179)
(cherry picked from commit 9c5ba09748)

Co-authored-by: Marcin Niemira <marcin@niemira.net>
2018-07-07 15:48:07 -07:00
Andrés Delfino ad0fc8ddba [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510). (GH-8171)
(cherry picked from commit b6bb77c2b8)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-07-08 00:10:18 +03:00
Pablo Galindo 8902a1d14e
[2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126)
The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module.

* Correct the arguments passed to the Opera Browser when opening a new URL..
(cherry picked from commit 3cf1f154ed)

Co-authored-by: Bumsik Kim <k.bumsik@gmail.com>
2018-07-07 00:54:09 +01:00
Ammar Askar 7829bba45d [2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (#8133)
Most of the change involves fixing up the test suite, which previously made
the assumption that there wouldn't be a new line if the input didn't end in
one.

Contributed by Ammar Askar.

(cherry picked from commit c4ef4896ea)
2018-07-06 13:23:13 +03:00
Serhiy Storchaka 9720f60f2a
[2.7] bpo-33720: Improve tests for the stack overflow in marshal.loads(). (GH-7336). (GH-8107)
(cherry picked from commit fc05e68d8f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-05 12:20:19 +03:00
Miss Islington (bot) bfee59018f
Don't export pending_threadfunc from _testcapi. (GH-8075)
(cherry picked from commit b4588c2fff)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-07-03 22:48:45 -07:00
Miss Islington (bot) 292ce153fc bpo-34018: Doc'd that type names of SQLite converters are case-insensitive. (GH-8042) (GH-8066)
(cherry picked from commit 831c29721d)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2018-07-03 15:37:36 +03:00
Victor Stinner 53fafafa34
bpo-33735: Fix test_multiprocessing random failure (GH-8059) (GH-8061)
When hunting memory leaks using -R 3:3, test_imap_unordered() of
test_multiprocessing leaks randomly a few memory blocks. It is a
false alarm: when testing using -R 3:20 for example, no leak is
detected.

Modify test_imap_unordered() to be closer to test_imap():

* Only test 10 numbers instead of 1000: it's a pool of 4 processes, so
  10 is enough to test at least one number per process
* Use chunksize=100 instead of chunksize=53 to mimick test_imap()

(cherry picked from commit 23401fb960)
2018-07-03 13:43:24 +02:00
Serhiy Storchaka 9b84cc8771
[2.7] bpo-33974: Fix passing special characters to ttk widgets. (GH-7986) (GH-8021)
Fix passing lists and tuples of strings containing special characters
'"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
(cherry picked from commit 5bb5bbfca8)
2018-06-30 13:34:56 +03:00
Zackery Spytz 0464de0f9a [2.7] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8013)
(cherry picked from commit 23db935bcf)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-29 23:07:13 +03:00
Ned Deily 11ba050986
Update 2.7 doc templates for 3.7.0 (GH-7996) 2018-06-28 15:20:35 -04:00
Miss Islington (bot) bcb1ac8265
bpo-33958: Doc: Remove unused variable in example (GH-7927)
(cherry picked from commit 62b6cea6b8)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
2018-06-27 23:37:17 -07:00
Benjamin Peterson 468f97b464
[2.7] closes bpo-33956: update vendored expat to 2.2.5 (GH-7925)
(cherry picked from commit 4e21100fa7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-06-26 20:56:58 -07:00
Ned Deily f79386f669
bpo-29514: Make magic number test work for candidates (GH-7946) 2018-06-26 23:55:36 -04:00
Victor Stinner 5430c14aba
[2.7] bpo-33873: Backport regrtest from master (GH-7936)
* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)

* Enhance also format_duration(): work on integers and rounds towards
  +infinity (math.ceil).
* Write unit tests on format_duration()

(cherry picked from commit 4ffe9c2b25)

* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)

regrtest: Add warning when using less than 3 warmup runs like -R 1:3.

(cherry picked from commit cac4fef886)

* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)

Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.

Add check for invalid --huntrleaks/-R parameters.

(cherry picked from commit 58ed7307ea)
2018-06-26 23:57:12 +02:00
Zachary Ware 16137fe22f bpo-27780: Make pgen.c C89 compliant (GH-7915) 2018-06-25 20:40:15 -07:00
Tal Einat 78209734a0
[2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905)
(cherry picked from commit 4a6e746079)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-25 13:47:23 +03:00
Tal Einat aa770b7096
[2.7] bpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7902)
Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.

(cherry picked from commit a8ddf85a84)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-25 09:52:35 +03:00
native-api b18f098357 bpo-33711: Fix license generation error in installer build script (GH-7241) 2018-06-24 17:50:23 -05:00
Andrés Delfino 2c11e23a5a [2.7] bpo-33885: Replace "hook function" with "callable" (GH-7765). (#7885)
(cherry picked from commit c45cb47907)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-23 22:16:29 -04:00
Miss Islington (bot) 3e3157bd55
bpo-33887: Add TOC to Design and History FAQ(GH-7766)
(cherry picked from commit 38cf49bf69)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-23 11:33:43 -07:00
Benjamin Peterson 9ee9efa9fd
make pgen.c C89 compliant again (GH-7870) 2018-06-22 21:51:44 -07:00
Benjamin Peterson 482fac7499
[2.7] properly free memory in pgen. (GH-7869) (closes bpo-27780
(cherry picked from commit 9ac11a752a)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-06-22 21:04:21 -07:00
Andrés Delfino 1c9a72cc99 [2.7] bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)
The statement is true for Windows (and macOS) also..
(cherry picked from commit c9d43c702a)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-22 22:37:17 -04:00
Victor Stinner 319cfb5f30
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
2018-06-22 09:11:33 +02:00
Anselm Kruis 7b383a5714 bpo-33931: Fix building using PC\VS9.0\build.bat -e (GH-7844)
Set the openssl version to 1.0.2o and fix compiling Tcl.
2018-06-21 09:08:32 -05:00
Victor Stinner f2918881b7
bpo-33901: Fix test_gdbm for gdbm 1.15 (GH-7798) (GH-7818)
Fix test_gdbm.test_reorganize() on macOS with gdbm 1.15: add a
larger value to make sure that the file size changes.

(cherry picked from commit 13c79c677f)
2018-06-20 10:57:38 +02:00
Miss Islington (bot) b2dd5f1b66 bpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH-7797) (GH-7803)
(cherry picked from commit 71ca738f4c)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
2018-06-20 02:02:17 +08:00
Xtreak 9c1317874c Fix four spelling typos in documentation (GH-7753) 2018-06-19 11:46:49 +08:00
Andrés Delfino 60c888d0eb bpo-33892: Doc: Use gender neutral words (GH-7770)
(cherry picked from commit 5092439c2c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-19 00:33:58 +09:00
Terry Jan Reedy c488558faa
[2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758)
Make it the same as when one runs 'python'..
(cherry picked from commit 9d49f85064)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
2018-06-16 18:15:18 -04:00
Miss Islington (bot) 80c51c4737
bpo-33571: Improve the glossary description for '...' prompt (GH-6971)
Mention that it can be triggered by triple quotes and after specifying decorators.
(cherry picked from commit 6868003514)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-15 20:58:15 -07:00
Miss Islington (bot) bb3b365588 Improve the grammar in the glossary item for `list` (GH-7727)
" ... access to elements is O(1)."

(cherry picked from commit 7469ff5017)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-15 19:53:58 -07:00
Victor Stinner 70c3d5846a
Fix compiler warnings on Windows (GH-7729)
Fix comparison between signed and unsigned integers. Example of fixed
warning:

Modules\_sre.c(838): warning C4018: '<' : signed/unsigned mismatch

(cherry picked from commit 1fa174a418)
2018-06-16 00:33:51 +02:00
Victor Stinner e36f94f204
bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726)
* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)

python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.

(cherry picked from commit 019d33b7a4)

* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)

python-gdb now catchs UnicodeDecodeError exceptions when calling
string().

(cherry picked from commit d22fc0bc7d)

bpo-29367: python-gdb.py now supports also method-wrapper
(wrapperobject) objects.

(cherry picked from commit 611083331d)
2018-06-15 23:59:56 +02:00