Christian Heimes
225877917e
Issue #8813 : Add SSLContext.verify_flags to change the verification flags
...
of the context in order to enable certification revocation list (CRL)
checks or strict X509 rules.
2013-11-21 23:56:13 +01:00
Guido van Rossum
8820c239f7
Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye.
2013-11-21 11:30:06 -08:00
Guido van Rossum
9c55a58a1d
asyncio: Make Semaphore(0) work properly.
2013-11-21 11:07:45 -08:00
Serhiy Storchaka
d88c6f9b9b
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
2013-11-21 19:23:50 +02:00
Serhiy Storchaka
0b1386d922
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
2013-11-21 19:23:19 +02:00
Ronald Oussoren
c5cf797342
Issue #14455 : plistlib now supports binary plists and has an updated API.
...
This patch adds support for binary plists on OSX to plistlib (based
on a patch by 'dpounces').
The patch also cleans up the API for the plistlib module.
2013-11-21 15:46:49 +01:00
Victor Stinner
a282825bf6
Issue #19183 : Simplify test_gdb
...
repr() is no more platform dependent, SipHash has been fixed
2013-11-21 10:25:09 +01:00
Serhiy Storchaka
f4fd257a02
Issue #19633 : Fixed writing not compressed 16- and 32-bit wave files on
...
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
2013-11-21 11:04:22 +02:00
Serhiy Storchaka
d9a018222f
Issue #19633 : Fixed writing not compressed 16- and 32-bit wave files on
...
big-endian platforms.
Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file on big-endian platforms.
2013-11-21 11:02:30 +02:00
Christian Heimes
bd3a7f90b5
Issue #18379 : SSLSocket.getpeercert() returns CA issuer AIA fields, OCSP
...
and CRL distribution points.
2013-11-21 03:40:15 +01:00
Christian Heimes
efff7060f8
Issue #18138 : Implement cadata argument of SSLContext.load_verify_location()
...
to load CA certificates and CRL from memory. It supports PEM and DER
encoded strings.
2013-11-21 03:35:02 +01:00
Christian Heimes
c4ab11050d
Issue #18775 : Add name and block_size attribute to HMAC object. They now
...
provide the same API elements as non-keyed cryptographic hash functions.
2013-11-20 17:35:06 +01:00
Christian Heimes
634919a9fa
Issue #17276 : MD5 as default digestmod for HMAC is deprecated. The HMAC
...
module supports digestmod names, e.g. hmac.HMAC('sha1').
2013-11-20 17:23:06 +01:00
Serhiy Storchaka
7f48396cb5
Print Tk patchlevel in test_tcl in verbose mode (issue19654).
2013-11-20 17:44:28 +02:00
Serhiy Storchaka
8db1823cf7
Print Tk patchlevel in test_tcl in verbose mode (issue19654).
2013-11-20 17:43:49 +02:00
Christian Heimes
680dc21380
update siphash24 test values
2013-11-20 13:47:13 +01:00
Victor Stinner
5132493155
Issue #19183 : Fix repr() tests of test_gdb, hash() is now platform dependent
2013-11-20 12:27:48 +01:00
Christian Heimes
156983ae3b
Issue #19183 : test_gdb's test_dict was failing on some machines as the order or dict keys has changed again.
2013-11-20 12:00:35 +01:00
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
...
Python now uses SipHash24 on all major platforms.
2013-11-20 11:46:18 +01:00
Victor Stinner
5323fb0990
Issue #19637 : fix test_undecodable_env() of test_subprocess on AIX
...
On AIX, the C locale encoding uses the ISO-8859-1 encoding, not ASCII.
2013-11-19 23:46:06 +01:00
Guido van Rossum
1540b16ff4
asyncio: Add streams.start_server(), by Gustavo Carneiro.
2013-11-19 11:43:38 -08:00
Ezio Melotti
4a9ee26750
#2927 : Added the unescape() function to the html module.
2013-11-19 20:28:45 +02:00
R David Murray
5160da1afc
Merge: #19449 : Handle non-string keys when generating 'fieldnames' error.
2013-11-19 13:17:26 -05:00
R David Murray
fb099c9ef1
#19449 : Handle non-string keys when generating 'fieldnames' error.
...
csv was handling non-string keys fine except for the error message
generated when a non-string key was not in 'fieldnames'.
Fix by Tomas Grahn, full patch-with-test by Vajrasky Kok (tweaked slightly).
2013-11-19 13:16:20 -05:00
Nick Coghlan
f1de55fb33
Also chain codec exceptions that allow weakrefs
...
The zlib and hex codecs throw custom exception types with
weakref support if the input type is valid, but the data
fails validation. Make sure the exception chaining in the
codec infrastructure can wrap those as well.
2013-11-19 22:33:10 +10:00
Serhiy Storchaka
58cf607d13
Issue #12892 : The utf-16* and utf-32* codecs now reject (lone) surrogates.
...
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
2013-11-19 11:32:41 +02:00
doko@ubuntu.com
a938bcfe95
- Remove execute permissions from test_dbm_gnu.py and test_dbm_ndbm.py
2013-11-19 09:12:50 +01:00
doko@ubuntu.com
7ad11bf815
- Remove execute permissions from test_dbm_gnu.py and test_dbm_ndbm.py
2013-11-19 09:12:28 +01:00
Zachary Ware
4accf45f0e
Issue #19596 : Set untestable tests in test_importlib to None
...
to avoid reporting success on empty tests.
2013-11-18 21:44:38 -06:00
Gregory P. Smith
30d8e167ff
Cleanup this test's modification of os.environ in teardown (this already
...
exists in 3.4 but apparently wasn't done for 3.3).
2013-11-18 21:10:04 +00:00
Charles-François Natali
f47981f51e
selectors: use a single return.
2013-11-18 18:59:43 +01:00
Serhiy Storchaka
fd32fffa5a
Issue #8402 : Added the escape() function to the glob module.
2013-11-18 13:06:43 +02:00
Victor Stinner
e3010fd740
Relax timing on test_asyncio for busy (slow) Windows buildbots
...
http://buildbot.python.org/all/builders/AMD64%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/1649/steps/test/logs/stdio
======================================================================
FAIL: test_wait_for_handle (test.test_asyncio.test_windows_events.ProactorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\home\cpython\buildslave\x64\3.x.snakebite-win2k8r2sp1-amd64\build\lib\test\test_asyncio\test_windows_events.py", line 112, in test_wait_for_handle
self.assertTrue(0.18 < elapsed < 0.22, elapsed)
AssertionError: False is not true : 0.25
2013-11-18 11:05:22 +01:00
Gregory P. Smith
162307fa35
Fix test.support.bind_port() to not cause an error when Python was compiled
...
on a system with SO_REUSEPORT defined in the headers but run on a system
with an OS kernel that does not support that reasonably new socket option.
2013-11-17 22:19:32 +00:00
Guido van Rossum
3287905335
Skip test_asyncio if concurrent.futures can't be imported. Hopeful fix for issue 19645.
2013-11-17 17:00:21 -08:00
Antoine Pitrou
6dd0d461a4
Issue #17618 : Add Base85 and Ascii85 encoding/decoding to the base64 module.
2013-11-17 23:52:25 +01:00
Victor Stinner
1a048f93bb
test_selectors: test_timeout fails sometimes on busy (slow) buildbots, relax
...
the unit test on max time (but be more strict on mon time). Example of failure:
http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/6978/steps/test/logs/stdio
======================================================================
FAIL: test_timeout (test.test_selectors.PollSelectorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_selectors.py", line 316, in test_timeout
self.assertTrue(0.5 < t1 - t0 < 1.5, t1 - t0)
AssertionError: False is not true : 1.5033390671014786
2013-11-17 23:46:34 +01:00
Victor Stinner
55329f8fbd
Issue #19634 : time.strftime("%y") now raises a ValueError on AIX when given a
...
year before 1900.
2013-11-17 23:39:21 +01:00
Gregory P. Smith
b6e622d184
Fix test.support.bind_port() to not cause an error when Python was compiled
...
on a system with SO_REUSEPORT defined in the headers but run on a system
with an OS kernel that does not support that reasonably new socket option.
2013-11-17 22:21:02 +00:00
Serhiy Storchaka
898e976734
Issue #19603 : Use specific asserts in test_decr.
2013-11-17 23:39:13 +02:00
Serhiy Storchaka
76edd2110d
Issue #19603 : Use specific asserts in test_decr.
2013-11-17 23:38:50 +02:00
Christian Heimes
a6bc95aa02
Issue #19448 : Add private API to SSL module to lookup ASN.1 objects by OID, NID, short name and long name.
2013-11-17 19:59:14 +01:00
Richard Oudkerk
35e4ad71ba
Merge.
2013-11-17 17:47:00 +00:00
Richard Oudkerk
46b4a5e51e
Issue #19599 : Increase sleep period.
2013-11-17 17:45:16 +00:00
Richard Oudkerk
69cce482cb
Merge.
2013-11-17 17:30:54 +00:00
Richard Oudkerk
8731d7b3c6
Fix handling of SystemExit and exit code. Patch by Brodie Rao.
2013-11-17 17:24:11 +00:00
Serhiy Storchaka
80b2aa0a4f
Issue #19606 : Use specific asserts in http.cookiejar tests.
2013-11-17 13:46:42 +02:00
Serhiy Storchaka
9d282f6b9f
Issue #19606 : Use specific asserts in http.cookiejar tests.
2013-11-17 13:45:02 +02:00
Serhiy Storchaka
c1fc5b50a0
Issue #19607 : Use specific asserts in weakref tests.
2013-11-17 13:20:39 +02:00
Serhiy Storchaka
2e29c9e1c2
Issue #19607 : Use specific asserts in weakref tests.
2013-11-17 13:20:09 +02:00
Serhiy Storchaka
9289713c0b
Issue #19605 : Use specific asserts in datetime tests
2013-11-17 13:03:07 +02:00
Serhiy Storchaka
3df4dcceb9
Issue #19605 : Use specific asserts in datetime tests
2013-11-17 12:52:33 +02:00
Serhiy Storchaka
f532d9419d
Merge heads
2013-11-17 12:30:50 +02:00
Serhiy Storchaka
3afec4e0b9
Merge heads
2013-11-17 12:30:29 +02:00
Georg Brandl
497b3943a3
merge with 3.3.3 release clone
2013-11-17 09:17:18 +01:00
Georg Brandl
9e2043a561
Bump to 3.3.3 final.
2013-11-17 07:58:22 +01:00
Nick Coghlan
c610aba1ed
Close #19282 : Native context management in dbm
2013-11-17 15:59:51 +10:00
Serhiy Storchaka
4725dc3ff4
Issue #19604 : Use specific asserts in array tests.
2013-11-17 00:45:39 +02:00
Serhiy Storchaka
91b3e77a6a
Issue #19604 : Use specific asserts in array tests.
2013-11-17 00:45:17 +02:00
Serhiy Storchaka
e3eb3ec5c4
Issue #19602 : Use specific asserts in tkinter tests.
2013-11-17 00:42:52 +02:00
Serhiy Storchaka
e3b5a76540
Issue #19602 : Use specific asserts in tkinter tests.
2013-11-17 00:42:25 +02:00
Serhiy Storchaka
d4b75bf63e
Issue #19601 : Use specific asserts in sqlite3 tests.
2013-11-17 00:40:01 +02:00
Serhiy Storchaka
78ee078405
Issue #19601 : Use specific asserts in sqlite3 tests.
2013-11-17 00:39:12 +02:00
Serhiy Storchaka
932c6160b5
Issue #19600 : Use specific asserts in distutils tests.
2013-11-17 00:20:12 +02:00
Serhiy Storchaka
39989157ad
Issue #19600 : Use specific asserts in distutils tests.
2013-11-17 00:17:46 +02:00
Serhiy Storchaka
bc39869095
Issue #19594 : Use specific asserts in unittest tests.
2013-11-17 00:14:35 +02:00
Serhiy Storchaka
5665bc5980
Issue #19594 : Use specific asserts in unittest tests.
2013-11-17 00:12:21 +02:00
Serhiy Storchaka
8f203dda0c
Issue #19591 : Use specific asserts in ctype tests.
2013-11-16 23:53:39 +02:00
Serhiy Storchaka
7c5e24f948
Issue #19591 : Use specific asserts in ctype tests.
2013-11-16 23:51:26 +02:00
Ezio Melotti
745d54d2fa
#17806 : Added keyword-argument support for "tabsize" to str/bytes.expandtabs().
2013-11-16 19:10:57 +02:00
Jason R. Coombs
b41c2547e0
Correct long line
2013-11-16 10:47:17 -05:00
Jason R. Coombs
9d78e416f5
Issue #19586 : Update remaining deprecated assertions to their preferred usage.
2013-11-16 10:35:46 -05:00
Serhiy Storchaka
452bab4acf
Issue #16685 : Added support for writing any bytes-like objects in the aifc,
...
sunau, and wave modules.
2013-11-16 14:01:31 +02:00
Serhiy Storchaka
7714ebbe0e
Issue #5202 : Added support for unseekable files in the wave module.
2013-11-16 13:04:00 +02:00
Serhiy Storchaka
a7a34a83f3
Issue #19590 : Use specific asserts in email tests.
2013-11-16 12:56:54 +02:00
Serhiy Storchaka
328cf3cbdf
Issue #19590 : Use specific asserts in email tests.
2013-11-16 12:56:23 +02:00
Guido van Rossum
2335de7a20
asyncio: Replace connection_refused() with error_received().
2013-11-15 16:51:48 -08:00
Jason R. Coombs
6f87a08aa7
Update more usage of assertEqual
2013-11-15 19:41:57 -05:00
Jason R. Coombs
e9f0311a0f
Use preferred assertEqual
2013-11-15 19:38:51 -05:00
Jason R. Coombs
75c40aed55
Use preferred assertEqual form. Correct indentation.
2013-11-15 19:35:05 -05:00
Jason R. Coombs
cb37641bb4
Issue #7408 : Forward port limited test from Python 2.7, fixing failing buildbot tests on BSD-based platforms.
2013-11-15 19:24:07 -05:00
Vinay Sajip
9c10d6b800
Issue #19504 : Used American spelling for 'customize'.
2013-11-15 20:58:13 +00:00
Vinay Sajip
a76157dca6
Issue #19523 : Closed FileHandler leak which occurred when delay was set.
2013-11-15 20:40:27 +00:00
Serhiy Storchaka
8bdc130121
Issue #19592 : Use specific asserts in lib2to3 tests.
2013-11-14 23:49:58 +02:00
Andrew Kuchling
98a0d063a1
Closes #12828 : add docstring text noting this is an internal-only module
2013-11-12 10:25:15 -05:00
Tim Golden
6e51b8ff0f
Issue13674 Correct crash with strftime %y format under Windows
2013-11-12 12:36:54 +00:00
Zachary Ware
c12f09ed24
Issue #19440 : Clean up test_capi
2013-11-11 22:47:04 -06:00
Tim Golden
acea823fd8
Remove outdated comment
2013-11-11 15:08:04 +00:00
Georg Brandl
4cf9b2047d
Bump to 3.3.3rc2.
2013-11-11 06:13:54 +01:00
Jason R. Coombs
a2ebfd0256
Issue #19544 and Issue #6286 : Restore use of urllib over http allowing use of http_proxy for Distutils upload command, a feature accidentally lost in the rollback of distutils2.
2013-11-10 18:50:10 -05:00
Jason R. Coombs
3492e39b44
Issue 19544 and Issue #7457 : Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2.
2013-11-10 18:15:03 -05:00
Andrew Kuchling
2a1838b9df
Issue #19544 and Issue #1180 : Restore global option to ignore ~/.pydistutils.cfg in Distutils, accidentally removed in backout of distutils2 changes.
2013-11-10 18:11:00 -05:00
Victor Stinner
aa32779632
Issue #19544 , #6516 : no need to catch AttributeError on import pwd/grp
2013-11-15 23:13:17 +01:00
Christian Heimes
06afed07d1
Issue #19544 and Issue #6516 : quick workaround for failing builds
2013-11-15 23:08:21 +01:00
Vinay Sajip
56b04352f8
Issue #19504 : Used American spelling for 'customize'.
2013-11-15 20:58:47 +00:00
Vinay Sajip
5e75829ec3
Closes #19523 : Merged fix from 3.3.
2013-11-15 20:42:47 +00:00
Andrew Kuchling
5e2d45672c
Issue #19544 and Issue #6516 : Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516 .
2013-11-15 13:01:52 -05:00
Guido van Rossum
39ecf2ed13
asyncio: Longer timeout in Windows test_popen. Fixes issue 19598.
2013-11-15 07:41:10 -08:00
Nick Coghlan
4e553e2e52
Avoid triggering the refleak detector
2013-11-16 00:35:34 +10:00
Nick Coghlan
c4c2580d43
Close 19609: narrow scope of codec exc chaining
2013-11-15 21:47:37 +10:00