Commit graph

5395 commits

Author SHA1 Message Date
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
Raymond Hettinger
e29a10306c Add test for heapq using both __lt__ and __le__. 2008-06-11 13:14:50 +00:00
Benjamin Peterson
e605e4f09a fix import of multiprocessing by juggling imports 2008-06-11 12:26:31 +00:00
Raymond Hettinger
4267be6478 Multi-arg form for set.difference() and set.difference_update(). 2008-06-11 10:30:54 +00:00
Gregory P. Smith
9d53457e59 Merge in release25-maint r60793:
Added checks for integer overflows, contributed by Google. Some are
 only available if asserts are left in the code, in cases where they
 can't be triggered from Python code.
2008-06-11 07:41:16 +00:00
Benjamin Peterson
190d56e009 add the multiprocessing package to fulfill PEP 371 2008-06-11 02:40:25 +00:00
Benjamin Peterson
d5299866f9 convert test_struct to a unittest thanks to Giampaolo Rodola
I had to disable one test because it was functioning incorrectly, see #1530559
I also removed the debugging prints
2008-06-11 01:31:28 +00:00
Raymond Hettinger
610a93ea26 Handle the case with zero arguments. 2008-06-11 00:44:47 +00:00
Benjamin Peterson
31296c09ed backport of 64096 2008-06-10 22:39:25 +00:00
Amaury Forgeot d'Arc
8e8de4afef Correct test_pydoc for win32 platforms, to account for normalized URLs:
C:\temp => file:///C|temp/
2008-06-10 21:37:15 +00:00
Josiah Carlson
b67b53db51 Fixed test to reflect new filedispatcher semantics, as well as two
NameErrors pointed out by Giampaolo.
2008-06-10 15:58:19 +00:00
Robert Schuppenies
901c997de0 Issue 3048: Fixed sys.getsizeof for unicode objects. 2008-06-10 10:10:31 +00:00
Georg Brandl
8509db5a21 Add the "ast" module, containing helpers to ease use of the "_ast" classes. 2008-06-10 07:45:28 +00:00
Josiah Carlson
1a72d88abf Applying updated patch from Issue 1736190, which addresses partial
issues in: 909005 and 17361001, as well as completely as possible issues
539444, 760475, 777588, 889153, 953599, 1025525, 1063924, and 658749.
This patch also includes doc and test updates as necessary.
2008-06-10 05:00:08 +00:00
Alexandre Vassalotti
602d8db2bc Added better pickling support to xrange objects.
Cleaned up the unit test.
2008-06-10 04:01:23 +00:00
Alexandre Vassalotti
1f2f61a78f Issue 2582: Fix pickling of xrange objects. 2008-06-10 03:34:53 +00:00
Raymond Hettinger
5c4d3d0e4c Let set.intersection() and set.intersection_update() take multiple input arguments. 2008-06-09 13:07:27 +00:00
Raymond Hettinger
ee4bcad68e Let set.union() and set.update() accept multiple inputs. 2008-06-09 08:33:37 +00:00
Raymond Hettinger
ecbdd2e9b0 Issue #2138: Add math.factorial(). 2008-06-09 06:54:45 +00:00
Raymond Hettinger
e98839a1f4 Issue3065: Fixed pickling of named tuples. Added tests. 2008-06-09 01:28:30 +00:00
Benjamin Peterson
f4fcdb6b8c warn about parameter tuple unpacking 2008-06-08 23:00:00 +00:00
Benjamin Peterson
d5efd20406 Warn about assigning to Py3k keywords (True and False) 2008-06-08 22:52:37 +00:00
Benjamin Peterson
2fe3ef8750 change Py3k backquote warning to a SyntaxWarning and add a test 2008-06-08 02:05:33 +00:00
Georg Brandl
bf0610a1ca Revert unwanted changes. 2008-06-07 16:04:01 +00:00