Commit graph

21350 commits

Author SHA1 Message Date
Serhiy Storchaka
b4293efd93 Issue #28115: ZIP creation test requires zlib. 2016-10-23 22:32:30 +03:00
Serhiy Storchaka
666de77727 Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive. 2016-10-23 15:55:09 +03:00
Serhiy Storchaka
61c4c44b2a Issue #28115: Added tests for CLI of the zipfile module. 2016-10-23 13:07:59 +03:00
Guido van Rossum
52e5004b59 Issue #27989: Tweak inspect.formatannotation() to improve pydoc rendering of function annotations. Ivan L. 2016-10-22 07:55:18 -07:00
Martin Panter
1002a621c1 Issue #28435: Avoid no_proxy environment variable interfering with tests
Patch by Piotr Szczepaniak.
2016-10-22 01:42:06 +00:00
Martin Panter
d60ea5ff00 Issue #26620: Fix ResourceWarning in test_urllib2_localnet
* Use context manager on urllib objects to ensure that they are closed on error
* Use self.addCleanup() to cleanup resources even if a test is interrupted
  with CTRL+c

This backports a patch by Victor Stinner.
2016-10-22 01:28:21 +00:00
Guido van Rossum
3b557991d4 Two minor typing.py fixes (upstream #305) 2016-10-21 17:30:29 -07:00
Guido van Rossum
ac353dfa14 Issue #28482: Skip a few test_typing tests if asyncio unavailable 2016-10-21 16:12:17 -07:00
Guido van Rossum
7ef22d6b96 Sync typing.py from upstream 2016-10-21 14:27:58 -07:00
Yury Selivanov
3d67615a48 Issue #26923: Fix asyncio.Gather to refuse being cancelled once all children are done.
Patch by Johannes Ebke.
2016-10-21 17:22:17 -04:00
Victor Stinner
1f6b69b749 Issue #28409: regrtest: fix the parser of command line arguments. 2016-10-17 18:11:03 +02:00
Xavier de Gaye
10e54aeaa2 Issue #20766: Fix references leaked by pdb in the handling of SIGINT handlers. 2016-10-12 20:13:24 +02:00
Martin Panter
d2a584b47b Issue #28394: Spelling and typo fixes in code comments and changelog
Includes patch by Ville Skyttä.
2016-10-10 00:24:34 +00:00
Yury Selivanov
4145c83806 Issue #27972: Prohibit Tasks to await on themselves. 2016-10-09 12:19:12 -04:00
Yury Selivanov
908d55dd7e Issue #28399: Remove UNIX socket from FS before binding.
Patch by Коренберг Марк.
2016-10-09 12:15:08 -04:00
Guido van Rossum
e259267e52 Merge further typing.py changes from upstream. 2016-10-08 20:27:22 -07:00
Serhiy Storchaka
9c0e1f83af Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
Patch by Xiang Zhang.
2016-10-08 22:45:38 +03:00
Serhiy Storchaka
44759bcf13 Issue #28376: The constructor of range_iterator now checks that step is not 0.
Patch by Oren Milman.
2016-10-08 21:43:11 +03:00
Serhiy Storchaka
1c1130fb5f Issue #25783: Fixed test_traceback when run directly (without regrtest). 2016-10-07 23:45:42 +03:00
Serhiy Storchaka
5665301bae Issue #28257: Improved error message when pass a non-mapping as a var-keyword
argument.
2016-10-07 23:32:41 +03:00
Serhiy Storchaka
8793b21525 Issue #26293: Fixed writing ZIP files that starts not from the start of the
file.  Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
2016-10-07 22:20:50 +03:00
Yury Selivanov
36e7e97d62 asyncio: Only allow Unix Stream sockets for loop.create_unix_server/connection 2016-10-07 12:39:57 -04:00
Benjamin Peterson
4c8b2cd126 skip test on windows 2016-10-05 22:09:31 -07:00
Benjamin Peterson
cf0b9da988 fix bug in 48797808a302 2016-10-05 22:00:24 -07:00
Benjamin Peterson
e06cc67c19 skip test if resizing is not supported 2016-10-05 22:00:05 -07:00
Benjamin Peterson
cd04db03de mmap: do all internal arithmetic with Py_ssize_t while being very careful about overflow 2016-10-05 21:45:48 -07:00
Yury Selivanov
8dc3e43839 Issue #28372: Fix asyncio to support formatting of non-python coroutines 2016-10-05 19:32:49 -04:00
Yury Selivanov
0de3de6cbf Issue #28371: Deprecate passing asyncio.Handles to run_in_executor. 2016-10-05 18:28:09 -04:00
Yury Selivanov
5b8d4f97f8 Issue #28369: Raise an error when transport's FD is used with add_reader 2016-10-05 17:48:59 -04:00
Yury Selivanov
9eb6c67776 Issue #28368: Refuse monitoring processes if the child watcher has no loop attached.
Patch by Vincent Michel.
2016-10-05 16:57:12 -04:00
Serhiy Storchaka
7338ebc4ba Issue #28321: Fixed writing non-BMP characters with binary format in plistlib. 2016-10-04 20:04:30 +03:00
Serhiy Storchaka
7fd9f4b458 Merge heads 2016-10-04 18:23:55 +03:00
Serhiy Storchaka
09f3d080fe Issue #28350: String constants with null character no longer interned. 2016-10-04 18:17:22 +03:00
Benjamin Peterson
8f657c35b9 ensure gc tracking is off when invoking weakref callbacks (closes #26617) 2016-10-04 00:00:02 -07:00
Guido van Rossum
b47c9d29d7 More updates from upstream typing.py 2016-10-03 08:40:50 -07:00
Serhiy Storchaka
cc164232aa Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4().
Original patch by Xiang Zhang.
2016-10-02 21:29:26 +03:00
Serhiy Storchaka
63b5b6fd45 Moved Unicode C API related tests to separate test class. 2016-10-02 21:16:38 +03:00
Berker Peksag
480b069270 Issue #20254: Fix duplicate tests in test_socket
Patch by Vajrasky Kok.
2016-10-02 11:39:41 +03:00
Serhiy Storchaka
d556a35242 Issue #27358: Backported tests. 2016-10-02 11:10:18 +03:00
Serhiy Storchaka
6498e5270e Issue #28257: Backported a test. 2016-10-02 10:36:33 +03:00
Serhiy Storchaka
85c3f268f4 Issue #28322: Fixed possible crashes when unpickle itertools objects from
incorrect pickle data.  Based on patch by John Leitch.
2016-10-02 08:34:53 +03:00
Martin Panter
38317d3318 Issue #28275: Clean up to avoid use-after-free after bzip decompress failure 2016-10-01 02:45:17 +00:00
Berker Peksag
34b9d14be6 Issue #28283: Remove flaky test test_sock_connect_sock_write_race again
It was added back in 53a578f51f21.
2016-10-01 04:16:59 +03:00
Guido van Rossum
e3c65a7a22 Misc asyncio improvements from upstream 2016-09-30 08:17:15 -07:00
Serhiy Storchaka
00a0fc1144 Issue #27942: String constants now interned recursively in tuples and frozensets. 2016-09-30 10:07:26 +03:00
Berker Peksag
c16387b17f Issue #28300: Fix typos, patch by Shlomi Fish 2016-09-28 17:21:52 +03:00
Alexander Belopolsky
957b75699f Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:26:39 -04:00
Guido van Rossum
4cefe74aef Update typing.py and test_typing.py from upstream (https://github.com/python/typing) 2016-09-27 15:20:12 -07:00
Berker Peksag
63461bc384 Issue #28283: Remove flaky test test_sock_connect_sock_write_race 2016-09-28 00:39:36 +03:00
Serhiy Storchaka
47dee11ba7 Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:45:35 +03:00