Brett Cannon
cd8efa3704
Clean up the messages used by some tests.
14 years ago
Brett Cannon
8c5ec0a3af
Clean up test_sundry and have it error out when a module has grown
proper tests.
14 years ago
Brett Cannon
613cf25d2a
Use importlib instead of calling __import__ directly.
14 years ago
Vinay Sajip
87ed599b8a
Issue #16378 : Updated docstrings to reflect the defaults present in the code.
14 years ago
Antoine Pitrou
3354327113
Fix whitespace.
14 years ago
Antoine Pitrou
b5b3714168
Issue #12428 : Add a pure Python implementation of functools.partial().
Patch by Brian Thorne.
14 years ago
Philip Jenvey
3acc7ef1c5
add gc_collects to weakref tests
14 years ago
Victor Stinner
ee36c24d15
Issue #15478 : os.lchflags() is not always available when os.chflags() is available
14 years ago
Benjamin Peterson
debf64ce2b
missing letter
14 years ago
Victor Stinner
e667e98faa
Issue #16218 , #16444 : Backport improvment on tests for non-ASCII characters
14 years ago
Antoine Pitrou
37bfa4e7ec
Add a test for hashing of unaligned memory buffers (from issue #16427 ).
14 years ago
Antoine Pitrou
e11fecb5a9
Issue #16453 : Fix equality testing of dead weakref objects.
Also add tests for ordering and hashing.
14 years ago
Gregory P. Smith
e27faac45f
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
14 years ago
Nadeem Vawda
19e568d254
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
14 years ago
Gregory P. Smith
12489d98e6
Fixes issue #16140 : The subprocess module no longer double closes its
child subprocess.PIPE parent file descriptors on child error prior to
exec().
This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
14 years ago
Gregory P. Smith
3aee222122
Remove the subprocess "bad exception data" warning (formerly a print!)
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".
This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
14 years ago
Gregory P. Smith
8d07c264e4
Raise our own SubprocessError rather than a RuntimeError in when dealing with
odd rare errors coming from the subprocess module.
14 years ago
Gregory P. Smith
f44c9da166
Rename a local variable for readability and change a "this can't
happen" print() call into a RuntimeWarning as it should've been in the
first place. Because nothing should ever cause unexpected stdout output.
14 years ago
Gregory P. Smith
3d8e776cd9
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
used for stdin/stdout/stderr pipes to the child when fork() fails.
14 years ago
Gregory P. Smith
2ec82331b2
Fixes issue #14396 : Handle the odd rare case of waitpid returning 0 when
not expected in subprocess.Popen.wait().
14 years ago
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
14 years ago
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.
14 years ago
Antoine Pitrou
5c89b4ec55
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
Original patch by Jeff McNeil.
14 years ago
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.
14 years ago
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
14 years ago
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.
14 years ago
Victor Stinner
e2c574fbe5
Issue #16444 : disable undecodable characters in test_non_ascii() test until
the FreeBSD issue is fixed
14 years ago
Mark Dickinson
c8a6967ea8
Issue #14794 : slice.indices no longer returns OverflowError for out-of-range start, stop, step or length.
14 years ago
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.
14 years ago
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
14 years ago
Ezio Melotti
90eea97a33
#16433 : fix docstring of assertNotEqual.
14 years ago
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
14 years ago
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
from a Decimal argument.
14 years ago
Hynek Schlawack
5c6b3e214c
Issue #15001 : fix segfault on "del sys.module['__main__']"
Patch by Victor Stinner.
14 years ago
Victor Stinner
99dd8b577b
Remove outdated comment
14 years ago
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).
14 years ago
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.
14 years ago
Victor Stinner
90a9d51137
Issue #16414 : Fix typo in support.TESTFN_NONASCII (useless space)
14 years ago
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)
14 years ago
Stefan Krah
c3fb3c3fa0
Backport fc8f1b1c76bf.
14 years ago
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.
14 years ago
Tim Golden
9b3fb0c6a0
Backed out changeset dafca4714298
14 years ago
Tim Golden
3df8887fdf
Backed out changeset 5cf6c427fd39
14 years ago
Tim Golden
7fd4b68a70
Correct mis-indented whitespace
14 years ago
Tim Golden
8f323d9aca
issue9584: Add {} list expansion to glob. Original patch by Mathieu Bridon
14 years ago
Nick Coghlan
692b023f77
Record a known crasher from #6717
14 years ago
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.
14 years ago
Andrew Svetlov
90a654b1dd
Issue #15641 : Clean up deprecated classes from importlib
Patch by Taras Lyapun.
14 years ago
Andrew Svetlov
bcbf4036c9
Revome extra .py suffix
14 years ago
Andrew Svetlov
7529620a15
Issue #16218 : Fix test for issue again
14 years ago