Christian Heimes
de0b962998
Remove sys.platform == 'riscos' checks from some Python and test files. #16501
2012-11-19 00:59:39 +01:00
Ezio Melotti
739e1790f8
#7782 : merge with 3.3.
2012-11-18 23:16:02 +02:00
Brett Cannon
5650e4f41c
Issue #15627 : Add the compile_source() method to
...
importlib.abc.SourceLoader.
This provides an easy hook into the import system to allow for source
transformations, AST optimizations, etc.
2012-11-18 10:03:31 -05:00
Ezio Melotti
195ad6ce05
#16306 : merge with 3.3.
2012-11-18 14:06:54 +02:00
Ezio Melotti
f7c709d62d
#16306 : merge with 3.2.
2012-11-18 14:02:08 +02:00
Ezio Melotti
7c66319edc
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:55:52 +02:00
Ezio Melotti
6a5fc4c443
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:20:36 +02:00
Brett Cannon
d187726504
Issue #10966 : Remove the concept of unexpected skipped tests.
...
The concept of what was unexpected was typically defined as "some
depencendy wasn't installed", which isn't unexpected at all as it's
totally optional. Since it confuses new contributors as they think
something is wrong with their installation it seems sensible to get
rid of the concept.
This change also adds the concept of optional tests that are required
to work on a specific platform(s) (e.g. test_winreg on Windows). This
should help catch compile issues instead of a test being blindly
skipped even when it should have run.
The skipped test list in the future can also print out the reason for
being skipped to make it more obvious as to why the skipping occurred.
2012-11-17 20:46:26 -05:00
Antoine Pitrou
8f1fefab9a
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:54:40 +01:00
Antoine Pitrou
8572da5e96
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:52:05 +01:00
Antoine Pitrou
17babc5e97
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:50:08 +01:00
Antoine Pitrou
c3afba104a
Issue #14631 : Add a new :class:weakref.WeakMethod to simulate weak references to bound methods.
2012-11-17 18:57:38 +01:00
Ezio Melotti
658f3522c6
#11981 : remove duplicate line. Patch by Johan Euphrosine.
2012-11-17 18:56:15 +02:00
Brett Cannon
10f19812b5
Merge fix for #16489 from 3.3
2012-11-17 09:33:14 -05:00
Brett Cannon
56b4ca78d8
Issue #16489 : Make it clearer that importlib.find_loader() requires
...
the user to import any parent packages.
2012-11-17 09:30:55 -05:00
Jesus Cea
a4e37037a2
MERGE: Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:43:15 +01:00
Jesus Cea
fc1a63620e
MERGE: Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:42:41 +01:00
Jesus Cea
e4b863982c
Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:41:54 +01:00
Ezio Melotti
9d2e7e010e
#16478 : merge with 3.3.
2012-11-16 13:17:59 +02:00
Ezio Melotti
eb24b44ef4
#16478 : merge with 3.2.
2012-11-16 13:17:42 +02:00
Ezio Melotti
103f17ef91
#16478 : use floor division in tabnanny and fix a ResourceWarning. Patch by Serhiy Storchaka.
2012-11-16 13:17:08 +02:00
Mark Dickinson
73726aac0f
Issue #16469 : Fraction(float('nan')) and Fraction(float('inf')) now raise ValueError and OverflowError (resp.), not TypeError.
2012-11-15 20:58:40 +00:00
Richard Oudkerk
8f7c4b8a85
Issue #16481 : Merge
2012-11-15 18:22:23 +00:00
Richard Oudkerk
021f4c2ecc
Issue #16481 : multiprocessing no longer leaks process handles on Windows.
2012-11-15 18:16:35 +00:00
Vinay Sajip
8d27023a7e
Allow configuration of handler properties.
2012-11-15 14:20:18 +00:00
Philip Jenvey
8f2b6ad96f
merge 3.3
2012-11-14 14:51:44 -08:00
Philip Jenvey
21c95ebf7f
merge 3.2
2012-11-14 14:49:49 -08:00
Philip Jenvey
b37ac8eaf6
don't gc_collect on CPython to guarantee a lack of ref cycles (thanks Antoine)
2012-11-14 14:37:24 -08:00
Brett Cannon
cc1343140d
Fix a typo
2012-11-14 15:49:55 -05:00
Brett Cannon
6f7e81a549
merge
2012-11-14 15:22:56 -05:00
Brett Cannon
cd8efa3704
Clean up the messages used by some tests.
2012-11-14 15:16:53 -05:00
Brett Cannon
8c5ec0a3af
Clean up test_sundry and have it error out when a module has grown
...
proper tests.
2012-11-14 15:16:53 -05:00
Brett Cannon
613cf25d2a
Use importlib instead of calling __import__ directly.
2012-11-14 13:42:51 -05:00
Mark Dickinson
d20fb82195
Issue #16290 : __complex__ must now always return an instance of complex.
2012-11-14 17:08:31 +00:00
Vinay Sajip
2eb2f5e359
Closes #16378 : Merged docstring changes from 3.3.
2012-11-14 11:19:42 +00:00
Vinay Sajip
87ed599b8a
Issue #16378 : Updated docstrings to reflect the defaults present in the code.
2012-11-14 11:18:35 +00:00
Antoine Pitrou
3354327113
Fix whitespace.
2012-11-13 21:36:21 +01:00
Antoine Pitrou
b5b3714168
Issue #12428 : Add a pure Python implementation of functools.partial().
...
Patch by Brian Thorne.
2012-11-13 21:35:40 +01:00
Philip Jenvey
65a35dcadd
merge 3.3
2012-11-13 12:28:39 -08:00
Philip Jenvey
000bd4254f
merge 3.2
2012-11-13 12:27:56 -08:00
Philip Jenvey
3acc7ef1c5
add gc_collects to weakref tests
2012-11-13 12:26:31 -08:00
Victor Stinner
ee36c24d15
Issue #15478 : os.lchflags() is not always available when os.chflags() is available
2012-11-13 09:31:51 +01:00
Benjamin Peterson
29824550b1
merge 3.3
2012-11-12 16:48:25 -05:00
Benjamin Peterson
debf64ce2b
missing letter
2012-11-12 16:48:17 -05:00
Victor Stinner
e667e98faa
Issue #16218 , #16444 : Backport improvment on tests for non-ASCII characters
2012-11-12 01:23:15 +01:00
Antoine Pitrou
f2985650a0
Add a test for hashing of unaligned memory buffers (from issue #16427 ).
2012-11-11 20:11:15 +01:00
Antoine Pitrou
37bfa4e7ec
Add a test for hashing of unaligned memory buffers (from issue #16427 ).
2012-11-11 20:10:48 +01:00
Antoine Pitrou
05bc966490
Merge heads
2012-11-11 19:41:09 +01:00
Antoine Pitrou
1de1394f54
Merge heads
2012-11-11 19:40:49 +01:00
Antoine Pitrou
cc7715f8ae
Merge heads
2012-11-11 19:40:38 +01:00