Brett Cannon
a20800d1d9
test_resource should not assume all attributes are available when they
...
are individually controlled by #ifdef statements in the extension
code.
2013-10-25 15:45:25 -04:00
Antoine Pitrou
3b2f0f0459
Issue #19375 : The site module adding a "site-python" directory to sys.path, if it exists, is now deprecated.
2013-10-25 21:39:26 +02:00
Brett Cannon
e38b0544c4
Issue #16803 : Move test.test_importlib.extension to use both frozen and source importlib code
2013-10-25 15:39:02 -04:00
Antoine Pitrou
79aa68dfc1
Issue #19387 : explain and test the sre overlap table
2013-10-25 21:36:10 +02:00
Brett Cannon
ffd33c290b
Issue #16803 : Have test.test_importlib.builtin test both frozen and
...
source importlib.
2013-10-25 12:44:36 -04:00
Brett Cannon
b3d6afff2b
Issue #16803 : Stop having test.test_importlib.abc ABCs inherit from
...
unittest.TestCase in prep of running tests under frozen and source
importlib.
2013-10-25 12:33:59 -04:00
Charles-François Natali
c60dd5b0d4
test_selectors: make timeout-related errors report the actual elapsed timeout.
2013-10-25 17:56:00 +02:00
Charles-François Natali
052058fa14
test_selectors: rename test_interrupted_retry() (since it doesn't actually
...
retry on EINTR).
2013-10-25 17:49:47 +02:00
Christian Heimes
349b04e902
Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa.
2013-10-25 09:21:51 +02:00
Christian Heimes
c4a4b346a6
Issue #16595 : prlimit() needs Linux kernel 2.6.36+
2013-10-25 08:31:19 +02:00
Christian Heimes
2bcb1f68b6
remove unused imports from statistics module
2013-10-25 02:11:17 +02:00
Serhiy Storchaka
4f056d43d6
Issue #19288 : Fixed the "in" operator of dbm.gnu databases for string
...
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
2013-10-25 00:08:13 +03:00
Serhiy Storchaka
7d6392c517
Issue #19288 : Fixed the "in" operator of dbm.gnu databases for string
...
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
2013-10-25 00:06:52 +03:00
Serhiy Storchaka
124a0b314b
Issue #19287 : Fixed the "in" operator of dbm.ndbm databases for string
...
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
2013-10-25 00:01:25 +03:00
Serhiy Storchaka
9da33ab193
Issue #19287 : Fixed the "in" operator of dbm.ndbm databases for string
...
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
2013-10-24 23:59:28 +03:00
Antoine Pitrou
7cb11fa890
Close #19379 : Lazily import linecache in the warnings module, to make startup with warnings faster until a warning gets printed.
2013-10-24 22:23:42 +02:00
Serhiy Storchaka
8b150ecfc9
Issue #19327 : Fixed the working of regular expressions with too big charset.
2013-10-24 22:04:37 +03:00
Serhiy Storchaka
be80fc9a84
Issue #19327 : Fixed the working of regular expressions with too big charset.
2013-10-24 22:02:58 +03:00
Peter Moody
e5019d5183
#17400 : correct handling of 100.64.0.0/10, fixing the docs and updating NEWS
2013-10-24 09:47:10 -07:00
Senthil Kumaran
a46079e853
merge from 3.3: Increase the test coverage of macurl2path module. Patch by Colin Williams.
2013-10-23 21:55:35 -07:00
Senthil Kumaran
b82a3dc240
Increase the coverage of macurl2path. Patch by Colin Williams.
2013-10-23 21:50:56 -07:00
Antoine Pitrou
dfea31254b
Issue #19360 : fix test_site when Python is installed into $HOME/.local
2013-10-23 22:03:45 +02:00
Antoine Pitrou
a1782e1be8
Issue #19360 : fix test_site when Python is installed into $HOME/.local
2013-10-23 22:03:22 +02:00
Serhiy Storchaka
9c15ec1ce6
Issue #19365 : Optimized the parsing of long replacement string in re.sub*()
...
functions.
2013-10-23 22:27:52 +03:00
Antoine Pitrou
6c6b3f770d
Issue #19352 : Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv).
2013-10-23 19:15:05 +02:00
Antoine Pitrou
d5d0bc35ad
Issue #19352 : Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv).
2013-10-23 19:11:29 +02:00
Antoine Pitrou
3d3e1ba8ac
Issue #19340 : Fix test_sysconfig when Python is built with an empty prefix.
...
Patch by Sunny K.
2013-10-23 19:08:07 +02:00
Antoine Pitrou
dde25c4851
Issue #19340 : Fix test_sysconfig when Python is built with an empty prefix.
...
Patch by Sunny K.
2013-10-23 19:07:40 +02:00
Eric Snow
0db06a1c42
[Issue #19357 ] Ensure module "loaded" during tests gets forgotten.
2013-10-22 23:46:53 -06:00
Eric Snow
776b888071
[Issue #19357 ] Ensure module "loaded" during tests gets forgotten.
2013-10-22 23:27:42 -06:00
Peter Moody
be9c1b133b
#17400 : fix documentation, add cache to is_global and correctly handle 100.64.0.0/10
2013-10-22 12:36:21 -07:00
Tim Golden
a4df90ceb9
Issue #15207 : Fix mimetypes to read from correct area in Windows registry (Original patch by Dave Chambers)
2013-10-22 20:03:47 +01:00
Tim Golden
27a856495e
Issue #15207 : Fix mimetypes to read from correct area in Windows registry (Original patch by Dave Chambers)
2013-10-22 19:27:34 +01:00
Larry Hastings
d0a7e67804
Merge 3.4.0a4 release head back into trunk.
2013-10-22 10:49:20 -07:00
Ethan Furman
3f2f19230c
Issue #19030 : fix new pydoc tests for --without-doc-strings
2013-10-22 07:30:24 -07:00
Christian Heimes
e53510726b
Issue #18742 : Rework the internal hashlib construtor to pave the road for ABCs.
2013-10-22 14:59:12 +02:00
Christian Heimes
d885aa4d66
Make resource tests more robust.
2013-10-22 11:45:30 +02:00
Christian Heimes
b7bd5df809
Issue #16595 : Add prlimit() to resource module
...
prlimit() is a Linux specific command that combines setrlimit, getrlimit and can set the limit
of other processes.
2013-10-22 11:21:54 +02:00
Christian Heimes
6fc79bf813
Issue #19324 : Expose Linux-specific constants in resource module
2013-10-22 11:09:27 +02:00
Guido van Rossum
b0fb94dda8
Fix asyncio issue #19293 (hangs on AIX).
2013-10-21 21:28:45 -07:00
Guido van Rossum
f75debda94
Unsilence several asyncio AIX tests that no longer hang, and silence a new hang.
2013-10-21 20:57:25 -07:00
Ethan Furman
5875d74748
Close #19263 : add tests to ensure __objclass__ correctly set.
2013-10-21 20:45:55 -07:00
Guido van Rossum
934f6ea7fb
Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX hang).
2013-10-21 20:37:14 -07:00
Guido van Rossum
8a0fe85fbe
Avoid test_asyncio hang on AIX.
2013-10-21 20:26:12 -07:00
Christian Tismer
410d931a17
add filtering of individual files to PyZipFile
...
changed output of debug messages to say "path" or "file"
extended test for filtering certain files in a package
added test for filtering files in a python dir (no package)
2013-10-22 04:09:28 +02:00
Guido van Rossum
8da15cc218
asyncio: be more lenient if we don't understand status returned by waitpid().
...
This should have no effect, it's a "shouldn't happe" case.
Also tidied up some comments.
2013-10-21 15:00:44 -07:00
Peter Moody
22c3176426
#17400 ; ipaddress should make it easy to identify rfc6598 addresses
2013-10-21 13:58:06 -07:00
Charles-François Natali
1a82f7e6a5
Fix test_pydoc failure introduced by 2f09a6980e1a (issue #19030 ).
2013-10-21 14:46:34 +02:00
Charles-François Natali
6459025b24
Issue #19170 : telnetlib: use selectors.
2013-10-21 14:02:12 +02:00
Georg Brandl
a606542e95
#19274 : use captured_stdout() in the test suite; add NEWS entry.
2013-10-21 08:29:29 +02:00
Ethan Furman
b0c84cdaac
Issue #19030 : final pieces for proper location of various class attributes located in the metaclass.
...
Okay, hopefully the very last patch for this issue. :/
I realized when playing with Enum that the metaclass attributes weren't always displayed properly.
New patch properly locates DynamicClassAttributes, virtual class attributes (returned by __getattr__ and friends), and metaclass class attributes (if they are also in the metaclass __dir__ method).
Also had to change one line in pydoc to get this to work.
Added tests in test_inspect and test_pydoc to cover these situations.
2013-10-20 22:37:39 -07:00
Christian Tismer
59202e5fc7
add a filterfunc to zip file.PyZipFile.writepy, issue 19274
2013-10-21 03:59:23 +02:00
Guido van Rossum
7be5d7d0e0
Issue 19306: Add extra hints to faulthandler stack dumps that they are upside down.
2013-10-20 18:21:02 -07:00
Ezio Melotti
5c16c2eb45
#8964 : merge with 3.3.
2013-10-21 03:05:46 +03:00
Ezio Melotti
f076f53386
#8964 : fix platform._sys_version to handle IronPython 2.6+.
2013-10-21 03:03:32 +03:00
Ezio Melotti
566a2be95c
#18958 : Improve error message for json.load(s) while passing a string that starts with a UTF-8 BOM.
2013-10-21 02:10:55 +03:00
Ezio Melotti
a0e768ccc2
#19307 : Improve error message for json.load(s) while passing objects of the wrong type.
2013-10-21 01:52:33 +03:00
Benjamin Peterson
6b4f7803f8
cleanup the construction of __qualname__ ( closes #19301 again)
2013-10-20 17:50:28 -04:00
Antoine Pitrou
a7a150c7c6
Close #19297 : fix resource warnings in test_asyncio. Patch by Vajrasky Kok.
2013-10-20 23:26:23 +02:00
Charles-François Natali
5121debebf
Issue #19310 : asyncio: fix child processes reaping logic.
2013-10-20 23:23:44 +02:00
Antoine Pitrou
7d61800489
Skip one asyncio test when IPv6 isn't supported (Windows buildbots)
2013-10-20 21:45:29 +02:00
Antoine Pitrou
cb1fe98f76
Make various asyncio test files individually runnable
2013-10-20 21:02:53 +02:00
Charles-François Natali
bcd76827f4
Issue #19309 : asyncio: make waitpid() wait for all child processes, not only
...
those in the same process group.
2013-10-20 20:31:43 +02:00
Serhiy Storchaka
f3e21ba5af
Make test_audioop discoverable by unittest.
2013-10-20 17:25:34 +03:00
Serhiy Storchaka
6e9e4fe97c
Make test_audioop discoverable by unittest.
2013-10-20 17:24:42 +03:00
Serhiy Storchaka
2acc456c33
Issue #16038 : CVE-2013-1752: ftplib: Limit amount of data read by
...
limiting the call to readline(). Original patch by Michał
Jastrzębski and Giampaolo Rodola.
2013-10-20 17:02:10 +03:00
Serhiy Storchaka
c30b178cbc
Issue #16038 : CVE-2013-1752: ftplib: Limit amount of data read by
...
limiting the call to readline(). Original patch by Michał
Jastrzębski and Giampaolo Rodola.
2013-10-20 16:58:27 +03:00
Serhiy Storchaka
36af10c1f7
Issue #17087 : Improved the repr for regular expression match objects.
2013-10-20 13:13:31 +03:00
Serhiy Storchaka
d5fd8df22f
Add yet some 24-bit tests.
2013-10-20 12:49:04 +03:00
Larry Hastings
bd61c3ae1f
Version bump for 3.4.0a4.
2013-10-20 02:01:29 -07:00
Larry Hastings
f32ce7fd31
Rebuild pydoc topics for 3.4.0a4 release.
2013-10-20 01:59:09 -07:00
Serhiy Storchaka
ce82eb2e13
Issue #12866 : Fix bias() for 24-bit. Add more tests.
2013-10-20 09:42:26 +03:00
Guido van Rossum
d49c47bfb0
Break out of loop on EOF in asyncio echo test programs.
2013-10-19 21:26:34 -07:00
Antoine Pitrou
92945c574b
Un-backout e3ec6b17260c - the test fix was actually also necessary
2013-10-20 02:16:40 +02:00
Antoine Pitrou
c1b78419e6
Backout e3ec6b17260c after Guido's fix
2013-10-20 02:09:08 +02:00
Guido van Rossum
32e46850a1
(Hopefully) proper fix for gentoo buildbot failure due to lacking AF_INET6 support.
...
This should supersede revision e3ec6b17260c (but please test before removing that).
2013-10-19 17:04:25 -07:00
Antoine Pitrou
d20afad7d4
Issue #19305 : try to fix sporadic test_asyncio failure on FreeBSD 10.0
2013-10-20 01:51:25 +02:00
Antoine Pitrou
0d9eefda34
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails
2013-10-20 01:10:52 +02:00
Antoine Pitrou
4ca7355901
Issue #19299 : fix refleak test failures in test_asyncio
2013-10-20 00:54:10 +02:00
Antoine Pitrou
e55013febe
Issue #18235 : Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
...
Patch by David Edelsohn.
2013-10-19 22:06:26 +02:00
Antoine Pitrou
0abb21884c
Issue #18235 : Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
...
Patch by David Edelsohn.
2013-10-19 22:05:05 +02:00
Benjamin Peterson
3d9e481ece
give explicitly global functions and classes a global __qualname__ ( closes #19301 )
2013-10-19 16:01:13 -04:00
Larry Hastings
f5e987bbe6
Issue #18606 : Add the new "statistics" module (PEP 450). Contributed
...
by Steven D'Aprano.
2013-10-19 11:50:09 -07:00
Serhiy Storchaka
0e071c967c
Fixed tests for issue #19279 .
2013-10-19 21:14:57 +03:00
Serhiy Storchaka
eaea5e9107
Issue #12866 : The audioop module now supports 24-bit samples.
2013-10-19 21:10:46 +03:00
Christian Heimes
0fbd94ced9
Issue #18582 : skip test of _hashlib.pbkdf2_hmac if OpenSSL is not available or too old
2013-10-19 19:40:49 +02:00
Serhiy Storchaka
55e092f545
Issue #19279 : UTF-7 decoder no more produces illegal strings.
2013-10-19 20:39:28 +03:00
Serhiy Storchaka
35804e4c63
Issue #19279 : UTF-7 decoder no more produces illegal strings.
2013-10-19 20:38:19 +03:00
Guido van Rossum
f19a6ef2c9
Verify hostname if verify_mode is CERT_OPTIONAL too.
2013-10-19 09:52:09 -07:00
Guido van Rossum
3743711a96
Disable some subprocess tests that hang on AIX.
...
See http://bugs.python.org/issue19293
2013-10-19 09:10:13 -07:00
Guido van Rossum
7058dad0bd
Skip the asyncio tests when threads are not available.
...
See http://bugs.python.org/issue19295
2013-10-19 08:47:26 -07:00
Nick Coghlan
8608d26e81
contextlib doc updates and refactoring
...
- explain single use, reusable and reentrant in docs
- converted suppress to a reentrant class based impl
- converted redirect_stdout to a reusable impl
- moved both suppress and redirect_stdout behind a functional
facade
- added reentrancy tests for the updated suppress
- added reusability tests for the updated redirect_stdio
- slightly cleaned up an exception from contextmanager
2013-10-20 00:30:51 +10:00
Christian Heimes
3626a505db
Issue #19254 : Provide an optimized Python implementation of PBKDF2_HMAC
2013-10-19 14:12:02 +02:00
Ned Deily
87adb6ef38
Issue #14499 : Fix several problems with OS X universal build support:
...
1. ppc arch detection for extension module builds broke with Xcode 5
2. ppc arch detection in configure did not work on OS X 10.4
3. -sysroot and -arch flags were unnecessarily duplicated
4. there was no obvious way to configure an intel-32 only build.
2013-10-18 21:09:56 -07:00
Guido van Rossum
355491dc47
Write flow control for asyncio (includes asyncio.streams overhaul).
2013-10-18 15:17:11 -07:00
Guido van Rossum
051a331488
Relax some asyncio test timeouts ( http://bugs.python.org/issue19285 ).
2013-10-18 15:15:56 -07:00
Nadeem Vawda
ee1be99e05
Issue #19222 : Add support for the 'x' mode to the gzip module.
...
Original patch by Tim Heaney.
2013-10-19 00:11:13 +02:00
Nadeem Vawda
8a9e99cffc
Issue #19223 : Add support for the 'x' mode to the bz2 module.
...
Patch by Tim Heaney and Vajrasky Kok.
2013-10-19 00:11:06 +02:00
Nadeem Vawda
42ca98217c
Issue #19201 : Add support for the 'x' mode to the lzma module.
...
Patch by Tim Heaney and Vajrasky Kok.
2013-10-19 00:06:19 +02:00
Brett Cannon
c516815353
Fix test to not consider mixin a standalone test
2013-10-18 16:55:15 -04:00