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
Facundo Batista
96f3dc36ed
Trying to see if the problem in Martin's buildot is at
...
directory creation time...
2008-06-22 18:23:55 +00:00
Facundo Batista
b8242ba6b1
Trying to see if the @ in a path is causing the issue in the
...
shutil.rmtree() in the trunk.loewis-sun buildbot.
2008-06-22 16:11:34 +00:00
Facundo Batista
5596b0cfc2
Issue #2722 . Now the char buffer to support the path string has
...
not fixed length, it mallocs memory if needed. As a result, we
don't have a maximum for the getcwd() method.
2008-06-22 13:36:20 +00:00
Facundo Batista
a6a4d50efe
Now a from submitted via POST that also has a query string
...
will contain both FieldStorage and MiniFieldStorage items.
Fixes #1817 .
2008-06-21 18:58:04 +00:00
Facundo Batista
2da91c375b
Fixed issue #2888 . Now the behaviour of pprint when working with nested
...
structures follows the common sense (and works like in 2.5 and 3.0).
2008-06-21 17:43:56 +00:00
Andrew M. Kuchling
f484363bae
Use repr() for bad input strings; this makes the empty string or binary characters more visible
2008-06-21 13:47:20 +00:00
Raymond Hettinger
e0e711446b
Issue 3008: hex/oct/bin can show floats exactly.
2008-06-21 06:39:53 +00:00
Mark Dickinson
1ec2fcd16e
Issue #3004 : Minor fix to slice.indices(). slice(-10).indices(9) now
...
returns (0, 0, 1) instead of (0, -1, 1), and slice(None, 10, -1).indices(10)
returns (9, 9, -1) instead of (9, 10, -1).
2008-06-20 14:53:43 +00:00
Raymond Hettinger
e3ae655edf
Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.
2008-06-20 04:18:15 +00:00
Benjamin Peterson
6f5a2b52ae
skip test_macostools when UCS4 is enabled
2008-06-19 21:39:06 +00:00
Amaury Forgeot d'Arc
9b69ed9d67
In test_site, correctly escape backslashes in path names.
...
This allows the test to pass when the username begins with a lowercase 't'...
2008-06-19 21:17:12 +00:00
Amaury Forgeot d'Arc
8f40f0635b
test_macos can be skipped on non-mac platforms.
2008-06-19 19:57:39 +00:00
Benjamin Peterson
da9c9be159
Fix test_socket_ssl the easy way and remove it per #1489
2008-06-18 22:59:32 +00:00
Amaury Forgeot d'Arc
7248fd833c
The ssl certificate at https://sf.net is not valid.
...
Switch to https://sourceforge.net
2008-06-18 21:18:27 +00:00
Jesse Noller
a3b6baaaab
Remove test_listener_client to remove possible race condition in the multiprocessing tests
2008-06-18 16:34:50 +00:00
Jesse Noller
18623825d2
Attempt RLock creation prior to test execution on Linux, if it raises the OSError in issue 3111, skip the test suite
2008-06-18 13:29:52 +00:00
Benjamin Peterson
aa4e47a04d
add needed import
2008-06-17 23:01:59 +00:00
Benjamin Peterson
ed77f2e143
skip test_multiprocessing when /dev/shm doesn't exist. This seems to be a chroot problem in the buildbot env.
2008-06-17 22:40:44 +00:00
Robert Schuppenies
59f3ade862
Issue 3048: Fixed sys.sizeof test fails with wide unicode.
2008-06-17 08:42:15 +00:00
Benjamin Peterson
da3a1b1200
reduce the test_multiprocessing load to ones that shouldn't hang. These will be reenabled gradually as we find the problems.
2008-06-16 20:52:48 +00:00
Amaury Forgeot d'Arc
a8919fe631
Issue 3110: Crash with weakref subclass,
...
seen after a "import multiprocessing.reduction"
An instance of a weakref subclass can have attributes.
If such a weakref holds the only strong reference to the object,
deleting the weakref will delete the object. In this case,
the callback must not be called, because the ref object is being deleted!
2008-06-16 19:12:42 +00:00
Georg Brandl
a161f6070b
Forward-port new test from r64300.
2008-06-15 19:54:36 +00:00
Gregory P. Smith
a0205d0a46
silence the test when it is skipped on some platforms. should fix a
...
buildbot.
2008-06-14 17:34:09 +00:00
Martin v. Löwis
06510b2213
Run svneol.py on all sources.
2008-06-13 22:38:33 +00:00
Benjamin Peterson
dfd79494ce
convert multiprocessing to unix line endings
2008-06-13 19:13:39 +00:00
Robert Schuppenies
73e9ffc811
Fixed: sys.getsizeof does not take the actual length of the tuples into account.
2008-06-13 13:29:37 +00:00
Neal Norwitz
04097a6282
Fix typo in method name. The LT class implemented less than. The LE class
...
should implement less than or equal to (as the code does).
2008-06-13 06:03:25 +00:00
Benjamin Peterson
26305a03e3
add py3k warnings to rfc822
2008-06-12 22:33:06 +00:00
Benjamin Peterson
a03722f278
deprecated mimetools
2008-06-12 14:23:49 +00:00
Armin Rigo
ffae306784
Sounds obvious, but I didn't even realize that you can put non-string
...
keys in type dictionaries without using this locals() hack.
2008-06-12 09:50:58 +00:00
Benjamin Peterson
0fbcf69455
give the threading API PEP 8 names
2008-06-11 17:27:50 +00:00