Nadeem Vawda
9c40022e38
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:19:49 +01:00
Nadeem Vawda
ec6dfcffa0
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:16:44 +01:00
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:15:32 +01:00
Nadeem Vawda
9ea64e38b5
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:24:37 +01:00
Nadeem Vawda
dd1253abdd
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:21:22 +01:00
Nadeem Vawda
ee7889dec3
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:36 +01:00
Antoine Pitrou
5fb7308318
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
...
Original patch by Jeff McNeil.
2012-11-11 01:28:22 +01:00
Antoine Pitrou
73e9bd4d25
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
...
Original patch by Jeff McNeil.
2012-11-11 01:27:33 +01:00
Antoine Pitrou
5c89b4ec55
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
...
Original patch by Jeff McNeil.
2012-11-11 01:25:36 +01:00
Gregory P. Smith
601c0591c2
Fix test_urllib broken by my previous commits. The assumptions it was
...
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place. now all test cases agree on the
behavior.
2012-11-10 15:13:20 -08:00
Gregory P. Smith
6d9388faab
Fix test_urllib broken by my previous commits. The assumptions it was
...
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place. now all test cases agree on the
behavior.
2012-11-10 15:12:55 -08:00
Stefan Krah
b8f09d3791
Merge 3.3.
2012-11-10 23:31:22 +01:00
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
2012-11-10 23:09:04 +01:00
Gregory P. Smith
b696610c2d
Fixes issue #16409 : The reporthook callback made by the legacy
...
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7. This matches the
behavior of urllib.request.URLopener.retrieve.
2012-11-10 13:44:50 -08:00
Gregory P. Smith
6b0bdab429
Fixes issue #16409 : The reporthook callback made by the legacy
...
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7. This matches the
behavior of urllib.request.URLopener.retrieve.
2012-11-10 13:43:44 -08:00
Victor Stinner
e2c574fbe5
Issue #16444 : disable undecodable characters in test_non_ascii() test until
...
the FreeBSD issue is fixed
2012-11-10 22:32:08 +01:00
Mark Dickinson
c8a6967ea8
Issue #14794 : slice.indices no longer returns OverflowError for out-of-range start, stop, step or length.
2012-11-10 14:52:10 +00:00
Victor Stinner
ff3d515952
Issue #16444 , #16218 : Use TESTFN_UNDECODABLE on UNIX
...
Check if data is decoded by os.fsdecode() (filesystem encoding with
surrogateescape error handler, PEP 383), not by UTF-8 or the filesystem
encoding in strict mode.
Use TESTFN_UNDECODABLE in test_cmd_line_script.test_non_ascii() on UNIX.
2012-11-10 12:07:39 +01:00
Stefan Krah
4cb103ee39
Merge 3.3.
2012-11-08 11:19:55 +01:00
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
2012-11-08 11:17:29 +01:00
Stefan Krah
d2d3aa2038
Merge 3.3.
2012-11-07 23:54:37 +01:00
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
2012-11-07 23:47:19 +01:00
Stefan Krah
fc55bb1cc5
Merge 3.3.
2012-11-07 23:20:10 +01:00
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
...
from a Decimal argument.
2012-11-07 23:12:25 +01:00
Hynek Schlawack
15c02e3048
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:10:49 +01:00
Hynek Schlawack
33363f43e3
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:07:22 +01:00
Hynek Schlawack
5c6b3e214c
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:02:24 +01:00
Victor Stinner
99dd8b577b
Remove outdated comment
2012-11-07 00:57:26 +01:00
Victor Stinner
64e039af02
Issue #16414 : Fix test_os on Windows, don't test os.listdir() with undecodable
...
With the ANSI code page 932, os.listdir(b'\xe7') return an empty list (instead
of failing), whereas os.listdir(b'\xff') raises a FileNotFoundError.
It looks like a Windows bug: b'\xe7' directory does not exist,
FindFirstFileA(b'\xe7') fails with ERROR_FILE_NOT_FOUND (2), instead of
ERROR_PATH_NOT_FOUND (3).
2012-11-07 00:10:14 +01:00
Victor Stinner
ab8b6bd7fb
Issue #16414 : Test more characters for support.FS_NONASCII
...
It should increase the probability of finding a non-ASCII character on any
locale encoding.
2012-11-06 23:43:21 +01:00
Victor Stinner
90a9d51137
Issue #16414 : Fix typo in support.TESTFN_NONASCII (useless space)
2012-11-06 23:40:22 +01:00
Victor Stinner
8f049e5b5b
Issue #16414 : Fix support.TESTFN_UNDECODABLE and test_genericpath.test_nonascii_abspath()
...
* support.TESTFN_UNDECODABLE was decodable if the filesystem encoding was
cp932
* test_genericpath.test_nonascii_abspath() didn't work on Windows if the
path was not decodable (ex: with cp932)
2012-11-06 23:33:46 +01:00
Stefan Krah
c3fb3c3fa0
Backport fc8f1b1c76bf.
2012-11-06 23:27:24 +01:00
Victor Stinner
8b219b2936
Issue #16414 : Add support.FS_NONASCII and support.TESTFN_NONASCII
...
These constants are used to test functions with non-ASCII data, especially
filenames.
2012-11-06 23:23:43 +01:00
Tim Golden
9b3fb0c6a0
Backed out changeset dafca4714298
2012-11-06 15:33:30 +00:00
Tim Golden
8f323d9aca
issue9584: Add {} list expansion to glob. Original patch by Mathieu Bridon
2012-11-06 13:50:42 +00:00
Nick Coghlan
d9d1d08b07
Merge #6717 crasher from 3.3
2012-11-05 21:33:22 +10:00
Nick Coghlan
1de70b52a4
Merge #6717 crasher from 3.2
2012-11-05 21:32:11 +10:00
Nick Coghlan
692b023f77
Record a known crasher from #6717
2012-11-05 21:26:57 +10:00
Nick Coghlan
82de6d20de
Merge from 3.3
2012-11-05 20:40:57 +10:00
Nick Coghlan
32dd36bdce
The migration to importlib eliminated this crasher
...
If anyone finds another recursive C path that bypasses the recursion
limiting, they can add a new crasher example.
2012-11-05 20:40:25 +10:00
Andrew Svetlov
90a654b1dd
Issue #15641 : Clean up deprecated classes from importlib
...
Patch by Taras Lyapun.
2012-11-05 09:34:46 +02:00
Andrew Svetlov
bcbf4036c9
Revome extra .py suffix
2012-11-05 09:28:42 +02:00
Andrew Svetlov
7529620a15
Issue #16218 : Fix test for issue again
2012-11-05 08:20:15 +02:00
Victor Stinner
33f13ee133
(Merge 3.3) Close #15165 : Fix test_email on Windows 64 bits
...
Use year 1990 instead of year 1970 to avoid issues with negative timestamps.
2012-11-05 02:06:34 +01:00
Victor Stinner
9d95cbeaf9
Close #15165 : Fix test_email on Windows 64 bits
...
Use year 1990 instead of year 1970 to avoid issues with negative timestamps.
2012-11-05 02:06:13 +01:00
Victor Stinner
efe2b53d12
Issue #15478 : Fix test_pep277 on Windows
...
os.listdir() now returns the original path in OSError.filename (on any
platform), even if "*.*" was added to the path (on Windows).
2012-11-05 01:28:28 +01:00
Nadeem Vawda
ec8c8ae7ae
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:40:00 +01:00
Nadeem Vawda
519f43844b
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:38:48 +01:00
Nadeem Vawda
39079946a2
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:37:42 +01:00