Commit Graph

33246 Commits

Author SHA1 Message Date
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