Yury Selivanov
29f88c22e6
Issue 24178: support 'async with' for asyncio locks.
2015-05-13 14:10:38 -04:00
Berker Peksag
50c72d2778
Issue #22064 : Improve the misleading message from 2to3 when skipping optional fixers.
...
Patch by Vinod Kurup.
2015-05-13 13:40:12 +03:00
Berker Peksag
3a81f9ba46
Issue #22064 : Improve the misleading message from 2to3 when skipping optional fixers.
...
Patch by Vinod Kurup.
2015-05-13 13:39:51 +03:00
Berker Peksag
2f3742b0d8
Issue #1322 : platform.dist() and platform.linux_distribution() functions are now deprecated.
...
Initial patch by Vajrasky Kok.
2015-05-13 12:32:20 +03:00
Raymond Hettinger
eac503aeac
Issue #24064 : Property() docstrings are now writeable.
...
(Patch by Berker Peksag.)
2015-05-13 01:09:59 -07:00
Zachary Ware
37ac590f7c
Clean up test_coroutines a bit.
...
No more test_main(), s/assertEquals/assertEqual/, and remove unused import.
2015-05-13 01:03:06 -05:00
Nick Coghlan
baaadbf70d
Issue 24017: fix for "async with" refcounting
...
* adds missing INCREF in WITH_CLEANUP_START
* adds missing DECREF in WITH_CLEANUP_FINISH
* adds several new tests Yury created while investigating this
2015-05-13 15:54:02 +10:00
Zachary Ware
84d3e764d7
Issue #23911 : Fix ctypes test on Windows.
...
Comparing equality of list and tuple is always False.
2015-05-13 00:34:39 -05:00
Zachary Ware
d9b25bb511
Issue #23731 : Fix tracemalloc test on Windows.
...
'a.pyo' can no longer match 'a.py', so 'a.PYO' can't either.
2015-05-13 00:27:01 -05:00
Zachary Ware
ad3e27ae4c
Issue #23193 : Skip numeric_owner tests on platforms where they don't make sense
...
In particular, the tests bomb out on Windows. The feature is a no-op on platforms
without the pwd module or os.geteuid anyway.
2015-05-12 23:57:21 -05:00
Raymond Hettinger
849564f874
Extend test coverage to include heapifying large heaps
2015-05-12 21:42:40 -07:00
Raymond Hettinger
ffcd8490d0
Reduce the overhead in functools.total_ordering by localizing NotImplemented.
...
(Sugguested by Serhiy Storchaka)
2015-05-12 21:26:37 -07:00
Serhiy Storchaka
cd4a5cc339
Added forgotten new files for issues #22681 and #22682 .
2015-05-13 00:34:53 +03:00
Serhiy Storchaka
48e47aaa28
Issue #22486 : Added the math.gcd() function. The fractions.gcd() function now is
...
deprecated. Based on patch by Mark Dickinson.
2015-05-13 00:19:51 +03:00
Serhiy Storchaka
f0eeedf0d8
Issue #22681 : Added support for the koi8_t encoding.
2015-05-12 23:24:19 +03:00
Serhiy Storchaka
ad8a1c3fb2
Issue #22682 : Added support for the kz1048 encoding.
2015-05-12 23:16:55 +03:00
Yury Selivanov
fdba8381ff
Issue #24017 : Unset asyncio event loop after test.
2015-05-12 14:28:08 -04:00
Yury Selivanov
08a7a4e592
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
...
Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile. Most of asyncio tests
do not call loop.close() at all. Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.
Issue #24017 .
2015-05-12 11:43:35 -04:00
Yury Selivanov
e8944cb217
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
...
Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile. Most of asyncio tests
do not call loop.close() at all. Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.
Issue #24017 .
2015-05-12 11:43:04 -04:00
Berker Peksag
ea6d5592f2
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
...
if they called on a closed object.
Patch by John Hergenroeder.
2015-05-12 17:13:56 +03:00
Berker Peksag
d10d6ae2fa
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
...
if they called on a closed object.
Patch by John Hergenroeder.
2015-05-12 17:01:05 +03:00
Serhiy Storchaka
bedbf96e84
Issue #23870 : The pprint module now supports all standard collections
...
except named tuples.
2015-05-12 13:35:48 +03:00
Yury Selivanov
7544508f02
PEP 0492 -- Coroutines with async and await syntax. Issue #24017 .
2015-05-11 22:57:16 -04:00
Yury Selivanov
dc6a9c0423
asyncio: Merge 3.4 -- Support PEP 492. Issue #24017 .
2015-05-11 22:31:19 -04:00
Yury Selivanov
1af2bf75a2
asyncio: Support PEP 492. Issue #24017 .
2015-05-11 22:27:25 -04:00
Yury Selivanov
9657caf168
Merge 3.4 (asyncio changes)
2015-05-11 14:50:41 -04:00
Yury Selivanov
59eb9a4da5
asyncio: async() function is deprecated in favour of ensure_future().
2015-05-11 14:48:38 -04:00
Yury Selivanov
926b990d3d
asyncio: Drop JoinableQueue from 3.5
2015-05-11 14:42:43 -04:00
Yury Selivanov
7a093d9c71
Merge 3.4 (asyncio)
2015-05-11 14:40:56 -04:00
Yury Selivanov
740169cd24
Sync asyncio changes from the main repo.
2015-05-11 14:23:38 -04:00
Yury Selivanov
90ecfe65e6
asyncio: Sync with github repo
2015-05-11 13:48:16 -04:00
R David Murray
a33df31629
#21795 : advertise 8BITMIME if decode_data is False.
...
Patch by Milan Oberkirch, with a few updates. This changeset also
tweaks the smtpd and whatsnew docs for smtpd into what should be
the final form for the 3.5 release.
2015-05-11 12:11:40 -04:00
R David Murray
a6429db4b8
#21800 : Add RFC 6855 support to imaplib.
...
Original patch by Milan Oberkirch, updated by myself and
Maciej Szulik.
2015-05-10 19:17:23 -04:00
Yury Selivanov
e9ad5a57d7
Issue 22906: Add test file.
2015-05-09 13:53:57 -04:00
Yury Selivanov
8170e8c0d1
PEP 479: Change StopIteration handling inside generators.
...
Closes issue #22906 .
2015-05-09 11:44:30 -04:00
Raymond Hettinger
bd60e8dece
Issue #24018 : Add a collections.Generator abstract base class.
2015-05-09 01:07:23 -04:00
Benjamin Peterson
dae2ef1cfa
merge 3.4
2015-05-09 00:29:08 -04:00
Benjamin Peterson
65bcdd7195
ensure .keywords is always a dict
2015-05-09 00:25:18 -04:00
Donald Stufft
9020a9a226
merge - upgrade setuptools to 15.2
2015-05-08 21:30:37 -04:00
Donald Stufft
b0fc24bff4
Upgrade setuptools to 15.2
2015-05-08 21:30:04 -04:00
Larry Hastings
8093254597
Merge from 3.4.
2015-05-08 06:58:56 -07:00
Larry Hastings
7e63b36f7f
Issue #21520 : test_zipfile no longer fails if the word 'bad' appears
...
anywhere in the name of the current directory.
2015-05-08 06:54:58 -07:00
Serhiy Storchaka
fe373a5425
Fixed English in error message.
2015-05-06 19:22:55 +03:00
Serhiy Storchaka
4b5367c46d
Fixed English in error message.
2015-05-06 19:21:00 +03:00
Serhiy Storchaka
24d3b7f9df
Issue #24134 : assertRaises(), assertRaisesRegex(), assertWarns() and
...
assertWarnsRegex() checks are not longer successful if the callable is None.
Added tests for assertRaises().
2015-05-06 19:14:47 +03:00
Serhiy Storchaka
e130503c7b
Issue #24134 : assertRaises(), assertRaisesRegex(), assertWarns() and
...
assertWarnsRegex() checks are not longer successful if the callable is None.
Added tests for assertRaises().
2015-05-06 19:13:11 +03:00
Serhiy Storchaka
645058d11a
Issue #23880 : Tkinter's getint() and getdouble() now support Tcl_Obj.
...
Tkinter's getdouble() now supports any numbers (in particular int).
2015-05-06 14:00:04 +03:00
Serhiy Storchaka
9749b5a6a3
Issue #24125 : Saved error's line and column numbers when an error is occured
...
during closing expatreader. Fixed a regression introduced in issue #23865 .
2015-05-06 09:38:22 +03:00
Serhiy Storchaka
ab914780ba
Issue #24125 : Saved error's line and column numbers when an error is occured
...
during closing expatreader. Fixed a regression introduced in issue #23865 .
2015-05-06 09:36:06 +03:00
Berker Peksag
076dbd0560
Fix remaining tests and remove an unused import.
2015-05-06 07:01:52 +03:00