Benjamin Peterson
7dd854725b
get the symtable module back in working order
...
- Fix broken functions
- Add (hopefully) extensive tests
- Modernize a little
2008-08-17 17:13:26 +00:00
Antoine Pitrou
fd7c43e7be
#3556 : test_raiseMemError consumes an insane amount of memory
2008-08-17 17:01:49 +00:00
Antoine Pitrou
bebb18bef5
backport r65723: strengthen test_os.test_closerange
2008-08-17 14:43:41 +00:00
Antoine Pitrou
1e45c58a55
Make test_ossaudiodev work.
2008-08-17 00:36:03 +00:00
Benjamin Peterson
0847332716
include filename and line number in SyntaxError
2008-08-16 22:11:33 +00:00
Facundo Batista
eb90b788f4
Issue #2776 : fixed small issue when handling an URL with double slash
...
after a 302 response in the case of not going through a proxy.
2008-08-16 14:44:07 +00:00
Antoine Pitrou
11ec65d82b
Issue #3476 : make BufferedReader and BufferedWriter thread-safe
2008-08-14 21:04:30 +00:00
Facundo Batista
67d1981c51
Issue 1432. Fixes a bug caused because of the evolution
...
of the RFC that describes the behaviour. Note that we now
have the same behaviour than the current browsers.
2008-08-14 16:51:00 +00:00
Bill Janssen
39295c2650
remove duplicate close() from ssl.py; expose unwrap and add test for it
2008-08-12 16:31:21 +00:00
Nick Coghlan
48361f5cbf
Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
2008-08-11 15:45:58 +00:00
Georg Brandl
1e13ea94a3
- Issue #3537 : Fix an assertion failure when an empty but presized dict
...
object was stored in the freelist.
2008-08-11 09:07:59 +00:00
Brett Cannon
83e818415a
Copy reduce() to _functools so to have functools.reduce() not raise a warning
...
from usage under -3.
2008-08-09 23:30:55 +00:00
Skip Montanaro
a032bf41f6
accept issue 3436
2008-08-08 22:52:51 +00:00
Brett Cannon
3aa2a49ec9
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
...
has been removed there.
2008-08-06 22:28:09 +00:00
Mark Dickinson
c777a412f1
Remove duplicate import
2008-08-06 21:36:57 +00:00
Andrew M. Kuchling
10288e19bf
Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, check for having os.stat available
2008-08-05 01:00:57 +00:00
Mark Dickinson
b646757e01
Issue #1481296 : (again!) Make conversion of a float NaN to an int or
...
long raise ValueError instead of returning 0. Also, change the error
message for conversion of an infinity to an integer, replacing 'long' by
'integer', so that it's appropriate for both long(float('inf')) and
int(float('inf')).
2008-08-04 21:30:09 +00:00
Andrew M. Kuchling
70a6dbd46e
Bug 3228: Explicitly supply the file mode to avoid creating executable files,
...
and add corresponding tests.
Possible 2.5 backport candidate
2008-08-04 01:43:43 +00:00
Antoine Pitrou
92a6240198
Preemptively backport the relevant parts of r65420
2008-08-02 21:58:05 +00:00
Amaury Forgeot d'Arc
06847b13ca
Correct a crash when two successive unicode allocations fail with a MemoryError:
...
the freelist contained half-initialized objects with freed pointers.
The comment
/* XXX UNREF/NEWREF interface should be more symmetrical */
was copied from tupleobject.c, and appears in some other places.
I sign the petition.
2008-07-31 23:39:05 +00:00
Amaury Forgeot d'Arc
ad9604003c
Remove a dummy test that was checked in by mistake
2008-07-31 21:35:03 +00:00
Amaury Forgeot d'Arc
39fd672dfe
#3479 : unichr(2**32) used to return u'\x00'.
...
The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int.
(why doesn't gcc issue a truncation warning in this case?)
2008-07-31 21:28:03 +00:00
Neal Norwitz
e7d8be80ba
Security patches from Apple: prevent int overflow when allocating memory
2008-07-31 17:17:14 +00:00
Mark Dickinson
0f6414a0d6
Rename testSum to testFsum and move it to proper place in test_math.py
2008-07-31 14:48:32 +00:00
Brett Cannon
cda5ce24ed
Backport test.support.fcmp() from 3.0 to silence -3 warnings.
2008-07-31 03:00:53 +00:00
Raymond Hettinger
f080e6d7e0
Alter recipe to show how to call izip_longest() with
...
both a keyword argument and star arguments.
2008-07-31 01:19:50 +00:00
Amaury Forgeot d'Arc
246daedd11
#2542 : now that issubclass() may call arbitrary code,
...
make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there.
2008-07-31 00:42:16 +00:00
Benjamin Peterson
b8827c00b8
I mess up again; BufferError inherits StandardError
2008-07-30 23:49:28 +00:00
Benjamin Peterson
67ebfefef5
add BufferError to the exception hieracrchy
2008-07-30 19:35:27 +00:00
Mark Dickinson
fef6b13c32
Rename math.sum to math.fsum
2008-07-30 16:20:10 +00:00
Raymond Hettinger
efdf706a9f
Neaten-up the itertools recipes.
2008-07-30 07:27:30 +00:00
Mark Dickinson
ff5f16e4e5
More modifications to tests for math.sum: replace the Python
...
version of msum by a version using a different algorithm, and
use the new float.fromhex method to specify test results exactly.
2008-07-29 18:45:38 +00:00
Mark Dickinson
3e9c60c5fe
Remove math.sum tests related to overflow, special values, and behaviour
...
near the extremes of the floating-point range. (The behaviour of math.sum
should be regarded as undefined in these cases.)
2008-07-27 07:15:29 +00:00
Mark Dickinson
fe84cce668
Issue #3449 : Update decimal module to use most recent specification
...
(v. 1.68) and tests (v. 2.58) from IBM.
2008-07-27 06:39:07 +00:00
Skip Montanaro
1ef19f0de1
Close issue 3437 - missing state change when Allow lines are processed.
...
Adds test cases which use Allow: as well.
2008-07-27 00:49:02 +00:00
Antoine Pitrou
36897e1ff9
disable some failing tests in test_locale due to a bug in locale.py.
...
this should fix the failures on the solaris buildbot.
2008-07-26 13:49:13 +00:00
Antoine Pitrou
6327e8482e
Fix more buildbot failures on test_locale.
2008-07-26 11:56:37 +00:00
Antoine Pitrou
524f4135dc
try to fix most buildbot failures on test_locale + add a debug output for the solaris buildbot
2008-07-26 10:29:43 +00:00
Antoine Pitrou
ba54edadb3
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing ( #1864 , #1222 )
2008-07-25 20:40:19 +00:00
Antoine Pitrou
5fdfa3e36d
#3394 : zipfile.writestr doesn't set external attributes, so files are extracted mode 000 on Unix
2008-07-25 19:42:26 +00:00
Raymond Hettinger
8c664e8628
Issue 1592: Better error reporting for operations on closed shelves.
2008-07-25 18:43:33 +00:00
Antoine Pitrou
4982d5d04a
#2242 : utf7 decoding crashes on bogus input on some Windows/MSVC versions
2008-07-25 17:45:59 +00:00
Benjamin Peterson
30e208d525
remove unneeded import
2008-07-22 23:44:37 +00:00
Benjamin Peterson
f5574a0c29
don't use assert statement
2008-07-21 22:05:34 +00:00
Amaury Forgeot d'Arc
e4921fec01
Issue2378: pdb would delete free variables when stepping into a class statement.
...
The problem was introduced by r53954, the correction is to restore the symmetry between
PyFrame_FastToLocals and PyFrame_LocalsToFast
2008-07-21 22:00:38 +00:00
Georg Brandl
fa267829e7
Save the whole of sys.modules instead of using an import tracker.
...
This, when merged to py3k, will fix the spurious buildbot failure
in test_urllib2 ("<urlopen error unknown url type: do>").
2008-07-20 23:18:55 +00:00
Neal Norwitz
be3ff9cdc9
Fix misspeeld method name (negative)
2008-07-20 20:39:36 +00:00
Raymond Hettinger
f1f46f0350
Clean-up itertools docs and recipes.
2008-07-19 23:58:47 +00:00
Raymond Hettinger
39e0eb766f
Fix compress() recipe in docs to use itertools.
2008-07-19 23:21:57 +00:00
Georg Brandl
59ec315b04
#3319 : don't raise ZeroDivisionError if number of rounds is so
...
low that benchtime is zero.
2008-07-19 13:00:22 +00:00