Commit Graph

14855 Commits

Author SHA1 Message Date
Georg Brandl
599b65deca Use augassign. 2010-07-23 08:46:35 +00:00
Brian Curtin
db902ac0b4 Skip this test as it doesn't apply to Windows. It was added for
#9189 for some GCC flags.
2010-07-22 15:38:28 +00:00
Tarek Ziadé
3679727939 reverted distutils its 3.1 state. All new work is now happening in disutils2, and distutils is now feature-frozen. 2010-07-22 12:50:05 +00:00
Brett Cannon
5db0c94072 Add importlib benchmarks which try to be "realistic" by importing the decimal
module which is the largest module in the stdlib.
2010-07-22 07:40:56 +00:00
Alexander Belopolsky
3f8ecab589 Issue #9323: Fixed a bug in trace.py that resulted in loosing the name
of the script being traced.  Patch by Eli Bendersky.
2010-07-21 17:43:42 +00:00
Antoine Pitrou
8cb6dbf1b9 Issue #5395: check that array.fromfile() re-raises an IOError instead of replacing it
with EOFError.
(this is only an added test, but 2.x will get a fix too)
2010-07-21 16:41:31 +00:00
Doug Hellmann
1c524754f6 Apply patch from Ray Allen for issue 9296 2010-07-21 12:29:04 +00:00
Benjamin Peterson
20f9c3c50f revert unintended changes 2010-07-20 22:39:34 +00:00
Benjamin Peterson
013783c529 move test_trace.py so as not to conflict with future tests for the trace module 2010-07-20 22:37:19 +00:00
Alexander Belopolsky
533a167a71 Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
Bendersky for the patch.
2010-07-20 19:55:18 +00:00
Ronald Oussoren
d21886cea4 Without this patch the value of sysconfig.get_config_var('LDSHARED')
is wrong when PY_LDFLAGS is not empty.

The bug was caused by LDSHARED getting expanded *before* sysconfig
renamed PY_LDSHARED (and simular values) to names without a PY_
prefix.

The patch tries to maintain the intended behaviour of allowing users
to set LDFLAGS in the environment and have that affect the build.

Without this patch a universal build on OSX cannot build universal
(fat binary) extensions.
2010-07-20 16:07:10 +00:00
Gregory P. Smith
41e6c3df8b Fixes Issue #3704: http.cookiejar was not properly handling URLs with a / in
the parameters.  (This is jjlee's issue3704.patch ported to py3k)
2010-07-19 23:17:22 +00:00
Senthil Kumaran
79e17f6f66 Fix Issue9301 - urllib.parse.unquote and unquote_to_byte to raise TypeError for None. 2010-07-19 18:17:19 +00:00
Stefan Krah
99212f61db Sub-issue of #9036: Fix incorrect use of Py_CHARMASK. 2010-07-19 17:58:26 +00:00
Stefan Krah
9542cc6eb5 Issue #9265: Incorrect name passed as arg[0] when shell=True
and executable specified.
2010-07-19 14:20:53 +00:00
Ronald Oussoren
f4ebe2e8a0 This patch adds a testcase that demonstrates a problem
with the expansion of LDSHARED when accessing that value
through sysconfig.

The problem is probably caused by the 9189.

A fix will follow shortly.
2010-07-19 13:00:36 +00:00
Georg Brandl
55353ca6dc pydoc.pager does not promise to use $PAGER. 2010-07-19 08:02:46 +00:00
Georg Brandl
02053ee3b9 #9279: remove the pdb.doc file, put its contents in pdb.__doc__. Also sync this and the pdb docs, introduce a new directive for pdb commands and a role to link to them. 2010-07-18 10:11:03 +00:00
Alexander Belopolsky
d92f04062a Issue #5180: Fixed a bug that prevented loading 2.x pickles in 3.x
python when they contain instances of old-style classes.
2010-07-17 22:50:45 +00:00
Alexander Belopolsky
929d384058 Issue #9268: Add annotation option to pickletools.dis 2010-07-17 15:51:21 +00:00
R. David Murray
45bf773f60 #1555570: correctly handle a \r\n that is split by the read buffer.
Patch and test by Tony Nelson.
2010-07-17 01:19:57 +00:00
Brett Cannon
cbe1a4e28f Add comma grouping to max result so it's easier to read. 2010-07-16 19:26:23 +00:00
Antoine Pitrou
448acd0a3f Fix possible failure in pickling tests due to different instantiations
of the random module being around.
2010-07-16 19:10:38 +00:00
Brett Cannon
3b0a19eaba Add benchmarks for importing just source w/o writing bytecode, importing source
while writing bytecode, and importing bytecode with source existing (don't care
about sourceless imports).
2010-07-16 19:04:29 +00:00
Alexander Belopolsky
44c2ffd38f Corrected TUPLE<N> opcodes' docs. 2010-07-16 14:39:45 +00:00
Brett Cannon
7b9bcb8411 Touch up comments and code along with outputting what the unit of measure is. 2010-07-15 06:24:04 +00:00
Senthil Kumaran
04f31b8ae6 Fix a mistake, https proxy shoud be https:// 2010-07-14 20:10:52 +00:00
Senthil Kumaran
e4004a653c Fix: Issue6853 - Get HTTPS system proxy in Windows. 2010-07-14 19:15:23 +00:00
Alexander Belopolsky
4988d7a375 PEP 8 conformance: class_ -> cls 2010-07-14 13:46:57 +00:00
Antoine Pitrou
1f9dea0b5f Issue #9251: test_threaded_import didn't fail when run through regrtest
if the import lock was disabled.
2010-07-14 11:52:38 +00:00
Senthil Kumaran
aa69d4d00f Fix Issue5842 - Moving the tests out of urllib.parse module 2010-07-14 10:21:22 +00:00
Victor Stinner
996903120c Woops, test_sndhdr.py contains the same code twice: fix it 2010-07-13 23:08:01 +00:00
Victor Stinner
e9ebde48cf Issue #9243: Fix sndhdr module and add unit tests, contributed by James Lee. 2010-07-13 23:04:56 +00:00
Alexander Belopolsky
903396ee66 Set sys.modules[name] to None instead of 0 to block module import. 2010-07-13 14:50:16 +00:00
Mark Dickinson
94628eeb58 Yield more information on failure in test_struct boolean test. 2010-07-12 20:03:24 +00:00
Ezio Melotti
2efaf96771 #6026: skip test_get_file_list when zlib is not available. 2010-07-12 19:49:41 +00:00
Benjamin Peterson
5ef96e5fac allow byte literals 2010-07-11 23:06:06 +00:00
Mark Dickinson
68c5de6d1c assertEquals -> assertEqual 2010-07-11 19:12:10 +00:00
Mark Dickinson
b214e90e01 Issue #9137: Fix issue in MutableMapping.update, which incorrectly
treated keyword arguments called 'self' or 'other' specially.
2010-07-11 18:53:06 +00:00
Mark Dickinson
8e0c996873 Issue #9165: Add math.isfinite and cmath.isfinite. 2010-07-11 17:38:24 +00:00
Benjamin Peterson
3e7428995f test for set literals 2010-07-11 12:59:24 +00:00
Georg Brandl
492f3fc272 Allow set literals in literal_eval(). 2010-07-11 09:41:21 +00:00
Ronald Oussoren
d3950527e7 Fix for issue 9164 2010-07-11 09:05:07 +00:00
Senthil Kumaran
2ef16328e8 Stricter verification for file based url scheme and reliance on ftp protocol. 2010-07-11 03:12:43 +00:00
Benjamin Peterson
0d62f5bbfe ValueError is eventually what we want to move to, I suppose 2010-07-10 15:14:45 +00:00
Michael Foord
c653ce313f Fix error message for comparing single line strings in unittest.TestCase.assertEqual.
Issue 9174.
2010-07-10 13:52:22 +00:00
R. David Murray
0425a8ea72 Fix 'refleak' introduced by fnmatch cache purge tests.
This introduces a 'purge' function for the fnmatch module analogous
to the 'purge' function in the re module.
2010-07-10 13:52:13 +00:00
Georg Brandl
297d97241a #1434090: properly append child in expatbuilder doctype handler. 2010-07-10 11:40:13 +00:00
Georg Brandl
0310a83e7f #3071: tell how many values were expected when unpacking too many. 2010-07-10 10:32:36 +00:00
Jeffrey Yasskin
61c061a8b3 Oops. Fix distutils tests that r82746 broke. 2010-07-09 19:55:05 +00:00