Neal Norwitz
0c519b3a5e
Fix problem reported by pychecker where AuthenticationError wasn't imported.
...
Add some test coverage to this code. More tests should be added (TODO added).
R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
2008-08-25 01:50:24 +00:00
Neal Norwitz
901e4715bd
#3662 : Fix segfault introduced when fixing memory leaks.
...
TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio
R (approach from bug)=Amaury and Benjamin
2008-08-24 22:03:05 +00:00
Georg Brandl
30de77b97d
#3654 : fix duplicate test method name. Review by Benjamin P.
2008-08-24 18:11:07 +00:00
Benjamin Peterson
712ee92309
generate py3k warnings on __getslice__, __delslice__, and __setslice__
...
Reviewer: Brett Cannon
2008-08-24 18:10:20 +00:00
Mark Hammond
69ed524045
Fix bug 3625: test issues on 64bit windows. r=pitrou
2008-08-23 00:59:14 +00:00
Mark Dickinson
892429b08b
Fix float.fromhex test to give additional information on failure. This
...
change is aimed at diagnosing issue 3633 (test_float fails on Solaris).
Reviewed by Benjamin Peterson
2008-08-21 20:02:24 +00:00
Hirokazu Yamamoto
cd3b74d4e8
Reverted r65900. See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html
2008-08-20 16:15:28 +00:00
Hirokazu Yamamoto
ccfdcd0cb2
fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk)
2008-08-20 04:13:28 +00:00
Benjamin Peterson
e977ad4d7b
deprecate some useless, noop methods in symtable
2008-08-20 01:42:01 +00:00
Amaury Forgeot d'Arc
67f24f1ed6
follow-up of issue3473: update the compiler package to recognize the new syntax.
2008-08-20 00:08:47 +00:00
Benjamin Peterson
bd6a05fe81
check that the parser module can handle the new keyword syntax
2008-08-19 22:06:11 +00:00
Benjamin Peterson
80f0ed5bb1
allow keyword args to be passed in after *args #3473
2008-08-19 19:52:46 +00:00
Jesse Noller
5bc9f4c09c
issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included.
2008-08-19 19:06:19 +00:00
Benjamin Peterson
6ee1a31e9b
add py3k warnings for old threading APIs
...
they will still live in 3.0 but it can't hurt
2008-08-18 21:53:29 +00:00
Benjamin Peterson
26f521668a
fix old API names in test_ssl
2008-08-18 18:39:57 +00:00
Benjamin Peterson
82aa201022
patch up multiprocessing until it's API can be changed too
2008-08-18 18:31:58 +00:00
Benjamin Peterson
a9b2222de4
change a few uses of the threading APIs
2008-08-18 18:01:43 +00:00
Benjamin Peterson
cbae869759
backport threading property changes
2008-08-18 17:45:09 +00:00
Benjamin Peterson
d8a8972ca9
change threading.getIdent to a property
...
This is new in 2.6 so now need to worry about backwards compatibility :)
2008-08-18 16:40:03 +00:00
Benjamin Peterson
541f7da3a9
add a test for reduce's move
2008-08-18 02:12:23 +00:00
Antoine Pitrou
954ea64753
#3580 : fix a failure in test_os
2008-08-17 20:15:07 +00:00
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
Georg Brandl
278fc50c07
#3303 : fix crash with invalid Py_DECREF in strcoll().
2008-07-19 12:46:12 +00:00
Raymond Hettinger
3369167089
Add recipe to the itertools docs.
2008-07-19 00:43:00 +00:00
Raymond Hettinger
3c212163ec
Improve accuracy of gamma test function
2008-07-19 00:42:03 +00:00
Eric Smith
f032a00271
Fix issue 3411: default float format spec fails on negative numbers.
2008-07-19 00:24:05 +00:00
Brett Cannon
1e8fba729e
Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality.
2008-07-18 19:30:22 +00:00
Georg Brandl
74bbc79d10
Replace all map(None, a) with list(a).
2008-07-18 19:06:13 +00:00
Benjamin Peterson
e2886fd3ca
now that test_lib2to3 actually works and isn't extremely slow, we don't need the lib2to3 resource
2008-07-18 14:26:35 +00:00
Benjamin Peterson
0e3a6cf2cb
backport test_fileio
2008-07-18 14:14:41 +00:00
Georg Brandl
730c8185b9
Correct attribute name.
2008-07-18 10:29:30 +00:00
Georg Brandl
9334d02ff5
Remove duplicate entry in __all__.
2008-07-18 10:20:59 +00:00
Vinay Sajip
70fdc95b96
Issue #3389 : Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
2008-07-18 09:00:00 +00:00
Jesse Noller
7fb9640d57
Fix issue 3395, update _debugInfo to be _debug_info
2008-07-17 21:01:05 +00:00
Eric Smith
d6c393ab2b
Backed out r65069, pending fixing it in Windows.
2008-07-17 19:49:47 +00:00
Bill Janssen
0c1dbf8792
catch socket.error errors in badCertTest
2008-07-17 18:01:57 +00:00
Eric Smith
454816d8bd
Issue 3382: Make '%F' and float.__format__('F') convert results to upper case.
2008-07-17 17:48:39 +00:00
Benjamin Peterson
f5668f13c8
try to fix test_threading on the Windows bot
2008-07-17 12:57:22 +00:00
Georg Brandl
0a34baf1fc
Byte items *can* be chars in 2.6.
2008-07-16 23:18:51 +00:00
Georg Brandl
3e483f643d
#3156 : fix consistency in what type bytearray methods accept as items.
...
Also rename confusing "item" parameters to "index".
2008-07-16 22:57:41 +00:00
Georg Brandl
b9b68ae7a5
#3305 : self->stream can be NULL.
2008-07-16 22:04:20 +00:00
Jesse Noller
5e62ca4fea
Apply patch for 874900: threading module can deadlock after fork
2008-07-16 20:03:47 +00:00
Benjamin Peterson
4b4f0ebf19
lib2to3 isn't broken anymore, so we can run the test
2008-07-16 17:03:06 +00:00
Mark Dickinson
64b7e501f4
Issue #3360 : Fix incorrect parsing of "020000000000.0".
2008-07-16 09:40:03 +00:00
Benjamin Peterson
a736a28702
disable lib2to3 in the trunk. It's broken just for 2.6
2008-07-16 00:44:02 +00:00
Eric Smith
a5fa5a218d
Complete issue 3083: add alternate (#) formatting to bin, oct, hex in str.format().
2008-07-16 00:11:49 +00:00
Mark Dickinson
62764566e8
Fix float.from_hex tests. It appears that Linux/ia64 doesn't like
...
computing 2.0**-1074 accurately. Using ldexp(1.0, -1074) should be
safer.
2008-07-15 21:55:23 +00:00
Mark Dickinson
7103aa42c0
Issue #3008 : add instance method float.hex and class method float.fromhex
...
to convert floats to and from hexadecimal strings respectively.
2008-07-15 19:08:33 +00:00
Nick Coghlan
53663a695e
Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful
2008-07-15 14:27:37 +00:00
Eric Smith
d0c841243c
Added '#' formatting to integers. This adds the 0b, 0o, or 0x prefix for bin, oct, hex. There's still one failing case, and I need to finish the docs. I hope to finish those today.
2008-07-15 10:10:07 +00:00
Benjamin Peterson
a6864e0d9f
fix test_py3kwarns
...
The fact that this was failing and went unnoticed so long seems like a good argument for being able to enable and disble py3kwarnings through Python.
2008-07-14 17:42:17 +00:00
Robert Schuppenies
2ee623b710
Fixed test failure on Win64 machines.
2008-07-14 08:42:18 +00:00
Benjamin Peterson
e79edf5f7c
remove sys.version_info check for 3.0
2008-07-13 18:34:58 +00:00
Benjamin Peterson
2a6087966c
remove bytes alias
2008-07-13 18:25:13 +00:00
Nick Coghlan
b028f50911
Fix issue 3221 by emitting a RuntimeWarning instead of raising SystemError when the parent module can't be found during an absolute import (likely due to non-PEP 361 aware code which sets a module level __package__ attribute)
2008-07-13 14:52:36 +00:00
Nick Coghlan
38469e2719
Make test.test_support.catch_warnings more robust as discussed on python-dev. Also add explicit tests for itto test_warnings.
2008-07-13 12:23:47 +00:00
Brett Cannon
3d0b9f095a
dummy_thread.acquire() would return None if no waitflag argument was given. It
...
should have returned True.
Fixes issue #3339 . Thanks, Henk Punt for the report and Andrii v. Mishkovskiyi
for attempting a patch.
2008-07-13 01:15:07 +00:00
Josiah Carlson
873c3864ba
Fixed test for asyncore.
2008-07-11 23:26:59 +00:00
Amaury Forgeot d'Arc
2252d11c08
#3342 : In tracebacks, printed source lines were not indented since r62555.
...
#3343 : Py_DisplaySourceLine should be a private function. Rename it to _Py_DisplaySourceLine.
2008-07-11 21:45:06 +00:00
Robert Schuppenies
4762902998
Added garbage collector overhead and optional default return value to
...
sys.getsizeof.
2008-07-10 17:13:55 +00:00
Robert Schuppenies
9be2ec109b
Added additional __sizeof__ implementations and addressed comments made in
...
Issue3122.
2008-07-10 15:24:04 +00:00
Raymond Hettinger
b01713e7dc
Issue 3285: Fractions from_float() and from_decimal() accept Integral arguments.
2008-07-10 14:34:57 +00:00
Raymond Hettinger
3cd1e42dca
Issue 3301: Bisect functions behaved badly when lo was negative.
2008-07-10 14:03:19 +00:00
Robert Schuppenies
d2cd86ddd5
Fixed Issue3122 and extended sys.getsizeof tests for built-in types.
2008-07-10 13:43:26 +00:00
Raymond Hettinger
655d583a49
Issue 3287: Raise correct exception for float inputs.
2008-07-10 09:31:08 +00:00
Nick Coghlan
524b7773cc
Issue 2517: Allow unicode messages in Exceptions again by correctly bypassing the instance dictionary when looking up __unicode__ on new-style classes
2008-07-08 14:08:04 +00:00
Facundo Batista
1a664419bb
Issue 3306. Better control for a lenght in findmax() function.
2008-07-07 17:02:59 +00:00
Josiah Carlson
ff5f42088b
Fixed bugs 760475, 953599, and 1519.
2008-07-07 04:51:46 +00:00
Gregory P. Smith
3b1e6b2f83
- Issue #3309 : Fix bz2.BZFile itererator to release its internal lock
...
properly when raising an exception due to the bz2file being closed.
Prevents a deadlock.
2008-07-07 04:31:58 +00:00
Benjamin Peterson
7f58022219
remove test_compact_freelists from test_sys
2008-07-06 12:39:09 +00:00
Georg Brandl
1ecce468f8
Keep below 80 chars.
2008-07-05 16:43:45 +00:00
Benjamin Peterson
87988b6753
make regrtest aware of the lib2to3 resource
2008-07-05 16:29:38 +00:00
Martin v. Löwis
5a9ef426a9
Disable lib2to3 by default, unless run explicitly.
2008-07-05 15:48:20 +00:00
Mark Dickinson
bf9f4d8015
Issue 3188: accept float('infinity') as well as float('inf'). This
...
makes the float constructor behave in the same way as specified
by various other language standards, including C99, IEEE 754r,
and the IBM Decimal standard.
2008-07-05 11:33:52 +00:00
Georg Brandl
e78fbcce3e
#2663 : support an *ignore* argument to shutil.copytree(). Patch by Tarek Ziade.
...
This is a new feature, but Barry authorized adding it in the beta period.
2008-07-05 10:13:36 +00:00
Martin v. Löwis
8c43641271
Patch #1622 : Correct interpretation of various ZIP header fields.
...
Also fixes
- Issue #1526 : Allow more than 64k files to be added to Zip64 file.
- Issue #1746 : Correct handling of zipfile archive comments (previously
archives with comments over 4k were flagged as invalid). Allow writing
Zip files with archives by setting the 'comment' attribute of a ZipFile.
2008-07-03 12:51:14 +00:00
Brett Cannon
0bfac6e5d8
Revert r64673 and instead just change the file encoding.
2008-07-02 21:52:42 +00:00
Brett Cannon
3bff9d269c
FIx some Latin-1 characters to be UTF-8 as the file encoding specifies.
...
Closes issue #3261 . THankjs Leo Soto for the bug report.
2008-07-02 21:40:11 +00:00
Jesse Noller
76cf55f499
Add #!/usr/bin/env python for ben
2008-07-02 16:56:51 +00:00
Jesse Noller
146b7ab818
Reenable the manager tests with Amaury's threading fix
2008-07-02 16:44:09 +00:00
Nick Coghlan
c060b0e7eb
Issue 3190: pydoc now hides module __package__ attributes
2008-07-02 13:09:19 +00:00
Mark Dickinson
70c3289085
Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure
...
that the behaviour of Decimal doesn't change if/when re.UNICODE becomes
assumed in Python 3.0.
Also add a check that alternative Unicode digits (e.g. u'\N{FULLWIDTH
DIGIT ONE}') are *not* accepted in a numeric string.
2008-07-02 09:37:01 +00:00
Brett Cannon
8bb8fa5dd6
Handle urllib's renaming for Python 3.0:
...
* Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0.
* Update docs to mention split/rename of the module and deprecation of
urlopen().
Changes to lib2to3 are in a separate commit. Work is for issue #2885 .
2008-07-02 01:57:08 +00:00
Amaury Forgeot d'Arc
bdd941fac3
#3242 : fix a crash in "print", if sys.stdout is set to a custom object,
...
whose write() method installs another sys.stdout.
Will backport.
2008-07-01 20:38:04 +00:00
Benjamin Peterson
175e4d9663
#3219 repeated keyword arguments aren't allowed in function calls anymore
2008-07-01 19:34:52 +00:00
Amaury Forgeot d'Arc
1f40c8a8d7
#Issue3088 in-progress: Race condition with instances of classes derived from threading.local:
...
When a thread touches such an object for the first time, a new thread-local __dict__ is created,
and the __init__ method is run.
But a thread switch can occur here; if the other thread touches the same object, it installs another
__dict__; when the first thread resumes, it updates the dictionary of the second...
This is the deep cause of the failures in test_multiprocessing involving "managers" objects.
Also a 2.5 backport candidate.
2008-06-30 22:42:40 +00:00
Facundo Batista
763d309bba
Fix #2702 , with a correct accounting of recursion.
2008-06-30 01:10:55 +00:00
Benjamin Peterson
efc4a3ac17
fix typo
2008-06-28 23:35:31 +00:00
Benjamin Peterson
7416a4cd2a
convert test_audioop to unittest. Thanks to Giampaolo Rodola.
2008-06-28 23:06:05 +00:00
Bill Janssen
de34d91eb0
make sure we close the active channels when eof is received on them
2008-06-28 23:00:39 +00:00
Bill Janssen
934b16d0c2
various SSL fixes; issues 1251, 3162, 3212
2008-06-28 22:19:33 +00:00
Mark Dickinson
3af386a5cb
Remove trailing 'L's from numerator and denominator in the
...
repr() of a Fraction instance.
2008-06-27 10:11:52 +00:00
Brett Cannon
dea1b5653f
warnings.warn_explicit() did not have the proper TypeErrors in place to prevent
...
bus errors or SystemError being raised. As a side effect of fixing this, a bad
DECREF that could be triggered when 'message' and 'category' were both None was
fixed.
Closes issue 3211. Thanks JP Calderone for the bug report.
2008-06-27 00:31:13 +00:00
Robert Schuppenies
161b92103c
Corrected inconsistencies in sizeof tests and addressed issue pointed
...
out by Jean Brouwers.
2008-06-26 15:20:35 +00:00
Facundo Batista
68dc052ca6
Reverting the patch from #3165 , as it broke other
...
behaviours. I left the original test commented out (note
that that test came from #2702 , which seems to have a
problem in FreeBSD and Windows, but not in Linux).
I included a new test, to watch over the now-broken
behaviour, I took it from #3179 .
2008-06-25 19:24:53 +00:00
Robert Schuppenies
41a7ce0a2e
Issue 3147: Fixed SizeofTest failure for LLP64 systems.
2008-06-25 09:20:03 +00:00
Raymond Hettinger
9c437af4eb
Revert 64424, 64438, and 64439.
2008-06-24 22:46:07 +00:00
Eric Smith
5dce7e9a83
Fixed formatting with thousands separator and padding. Resolves issue 3140.
2008-06-24 11:11:59 +00:00
Raymond Hettinger
4c52f52ef3
Issue 3161: Missing import and test.
2008-06-23 03:29:28 +00:00
Facundo Batista
9da18b3133
Fixing the problem stated in issue 2702 with the patch submitted
...
in the issue 3165. Now cPickle does not fails with uncontrolled
behaviour when pickling into a very deep nested structure.
2008-06-22 23:19:14 +00:00
Facundo Batista
2694eb0219
Just returning nothing instead of rising TestSkipped, because
...
it makes the test fail in the trunk.loewis-sun buildbot.
2008-06-22 19:35:24 +00:00