Antoine Pitrou
fce7fd6426
Issue #9549 : sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
...
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
2010-09-01 18:54:56 +00:00
Benjamin Peterson
49203dc9f2
reformat comment
2010-08-31 20:10:55 +00:00
Daniel Stutzbach
19d6a4fd49
Issue #808164 : Fixed socket.close to avoid references to globals, to
...
avoid issues when socket.close is called from a __del__ method.
2010-08-31 20:08:07 +00:00
Daniel Stutzbach
061b14a4a1
Reverted r84315 and r84316, with Benjamin's blessing. The tests were
...
fine. They were failing due to a problem exposed in r84307 and fixed
in r84317. See Issue 8781 for details.
2010-08-31 15:45:04 +00:00
Vinay Sajip
dc5097ff07
Removed _unicode variable which is always False in Python 3.x.
2010-08-31 07:52:17 +00:00
Vinay Sajip
ec1cd1c475
logging: merged duplicated code in fileConfig and dictConfig paths.
2010-08-30 19:02:14 +00:00
Vinay Sajip
609364a989
Logging: removed some old commented out code.
2010-08-30 18:31:13 +00:00
Giampaolo Rodolà
8b7da623ce
Fix issue #9711 : raise ValueError is SSLConnection constructor is invoked with keyfile and not certfile.
2010-08-30 18:28:05 +00:00
Vinay Sajip
40d9a4e854
Improved logging.Formatter date/time formatting documentation.
2010-08-30 18:10:03 +00:00
Benjamin Peterson
33856de84d
handle names starting with non-ascii characters correctly #9712
2010-08-30 14:41:20 +00:00
Florent Xicluna
e01de8f2f3
remove pointless coding cookies
2010-08-30 14:05:50 +00:00
Benjamin Peterson
e992a7da01
remove pointless coding cookie
2010-08-30 13:57:28 +00:00
Giampaolo Rodolà
4a656ebe05
dedent some lines in test_ssl so that they are actually executed
2010-08-29 22:50:39 +00:00
Giampaolo Rodolà
cd9dfb919a
in ssl tests rely on IOError.errno rather thanf IOError.strerror for better compatibility across platforms.
2010-08-29 20:56:56 +00:00
Giampaolo Rodolà
745ab3807e
Fix issue issue9706: provides a better error handling for various SSL operations
2010-08-29 19:25:49 +00:00
Giampaolo Rodolà
374f835316
Raise ValuError if non-zero flag argument is provided for sendall() method for conformity with send(), recv() and recv_into()
2010-08-29 12:08:09 +00:00
Antoine Pitrou
1a9a9d5433
Issue #1868 : Eliminate subtle timing issues in thread-local objects by
...
getting rid of the cached copy of thread-local attribute dictionary.
2010-08-28 18:17:03 +00:00
Mark Dickinson
64a38c0eb5
Issue #1512791 : In setframerate method of Wave_write, round non-integral
...
inputs to the nearest integer. Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Brett Cannon
a7ceeb335f
OSError is the exception raised when one tries to create a directory that
...
already exists, not IOError.
Part of the continuing saga of issue #9572 .
2010-08-26 21:07:13 +00:00
Senthil Kumaran
4bb5c273c6
Fix Issue8797 - Reset the basic auth retry count when response code is not 401.
2010-08-26 06:16:22 +00:00
Benjamin Peterson
0e10206f2c
basicsize and itemsize are Py_ssize_t #9688
2010-08-25 23:13:17 +00:00
Benjamin Peterson
6505ee8453
apparently this test should be gated, too
2010-08-25 17:57:04 +00:00
Benjamin Peterson
b35f646796
this test is only valid when sizeof(wchar) == Py_UNICODE_SIZE
2010-08-25 17:02:22 +00:00
Victor Stinner
ef6ff662c9
Fix test_sys: set LC_ALL instead of LANG
...
LC_ALL is read before LANG to choose the locale encoding (LC_ALL, LANG and then
LC_CTYPE: use the first non empty variable).
2010-08-25 08:33:34 +00:00
Martin v. Löwis
112c0f3411
Issue #1027206 : getnameinfo is now restricted to numeric addresses as input.
2010-08-25 07:38:15 +00:00
R. David Murray
219d1c8ae3
#1194222 : make parsedate always return RFC2822 four character years.
...
Two character years are now converted to four character years using
the Posix standard rule (<68 == 2000, >=68==1900). This makes the
parsed date RFC2822 compliant even if the input is not.
Patch and test by Jeffrey Finkelstein.
2010-08-25 00:45:55 +00:00
Victor Stinner
1970b62aee
Disable test_undecodable_code() of test_sys on Windows
...
This test is irrevelant on Windows
2010-08-25 00:20:27 +00:00
Victor Stinner
ebe53a23c9
Fix test_sys for FreeBSD, Solaris and Mac OS X
...
_Py_char2wchar() (mbctowcs) decodes b'\xff' to '\xff' on FreeBSD, Solaris and
Mac OS X, even if the locale is C (and the locale encoding is ASCII). Patch
test_undecodable_code() to support this output and document the two different
kinds of outputs.
2010-08-24 23:05:51 +00:00
Benjamin Peterson
16925e8539
remove parens
2010-08-24 21:30:14 +00:00
Brett Cannon
1d6569cfb9
Fix a bug where an attribute was lacking an object to work off of.
...
Related to the fix for issue #9572 . Thanks to Łukasz Czuja for catching the
bug.
2010-08-24 21:04:05 +00:00
Daniel Stutzbach
31da5b2f69
Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x
2010-08-24 20:49:57 +00:00
Benjamin Peterson
17689991e6
only catch AttributeError in hasattr() #9666
2010-08-24 03:26:23 +00:00
Giampaolo Rodolà
9cf5ef4cc0
fix issue 9129: adds proper error handling on accept() when smtpd accepts new incoming connections.
2010-08-23 22:28:13 +00:00
Giampaolo Rodolà
bbc4782d77
fix issue 9601: ftplib now provides a workaround for invalid response code returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
2010-08-23 22:10:32 +00:00
Benjamin Peterson
076e031e54
cleanup imports
2010-08-23 21:58:59 +00:00
Giampaolo Rodolà
76fc8c7098
fix issue 658749: correctly interprets asyncore's windows errors on connect()
2010-08-23 21:53:41 +00:00
Vinay Sajip
de6e9d615d
Issue #9501 : Fixed logging regressions in cleanup code.
2010-08-23 17:50:30 +00:00
Benjamin Peterson
9c2930e4be
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
2010-08-23 17:40:33 +00:00
Martin v. Löwis
67e91ad9cf
Explicitly pass socket type and family for getaddrinfo,
...
to make test work on Solaris.
Disable gethostbyaddr IDNA test for now as there is no
reverse DNS entry for the IPv6 address of the test name.
2010-08-23 15:27:26 +00:00
Brett Cannon
ee6d64773b
One of the joys of having test_multiprocessing occasionally execute after
...
test_importlib is that it discovers special little race conditions. For
instance, it turns out that importlib would throw an exception if two different
Python processes both tried to create the __pycache__ directory as one process
would succeed, causing the other process to fail as it didn't expect to get any
"help". So now importlib simply stays calm and just accepts someone else did
the work of creating the __pycache__ directory for it, moving on with life.
Closes issue #9572 .
2010-08-22 22:19:11 +00:00
Brett Cannon
186335bd5c
Make sure that no __pycache__ directory is needlessly left behind when testing
...
imports with an empty string in sys.path.
2010-08-22 22:11:06 +00:00
Antoine Pitrou
0723d2c78d
Add an import lock test for multithreaded circular imports.
...
(part of #9657 )
2010-08-22 20:43:26 +00:00
Brett Cannon
8d18907a2e
While not strictly necessary thanks to the odd ABC inheritance done through
...
importlib._bootstrap, add the optional methods for importlib.abc.SourceLoader
for completeness.
2010-08-22 20:38:47 +00:00
Martin v. Löwis
56773cf0d2
Mention that gethostbyaddr now also supports IDNA.
2010-08-22 19:38:04 +00:00
Martin v. Löwis
fc0275a14a
Issue #1027206 : Support IDNA in gethostbyname, gethostbyname_ex and
...
getaddrinfo. Patch by David Watson.
2010-08-22 19:33:47 +00:00
Vinay Sajip
89994b279f
Issue #9512 : Made comment more informative.
2010-08-22 18:11:02 +00:00
Antoine Pitrou
7224d073d2
Test that calls to path hooks and meta_path entries are serialized by the import lock.
...
(part of issue #9251 )
2010-08-22 10:18:36 +00:00
Raymond Hettinger
9117c75148
Issue #9214 : Fix set operations on KeysView and ItemsView.
2010-08-22 07:44:24 +00:00
Giampaolo Rodolà
6545ed6e4f
remove obsolete 'import SOCKS' statement
2010-08-21 20:34:37 +00:00
Antoine Pitrou
b46b9d59ef
Issue #9617 : Signals received during a low-level write operation aren't
...
ignored by the buffered IO layer anymore.
2010-08-21 19:09:32 +00:00
Giampaolo Rodolà
522180a60b
fix smtpd.py I accidentally broke in my previous commit
2010-08-21 18:58:21 +00:00
Giampaolo Rodolà
5fe9cd53b2
revert changes made in r84236 committed by accident
2010-08-21 18:47:59 +00:00
Giampaolo Rodolà
5c8c9a2c33
fix issue #9129 : added proper error handling when accepting new connections in SMTPServer.handle_accept
2010-08-21 18:35:05 +00:00
Marc-André Lemburg
ff562506d4
Fix a typo in the alias target name for 'macintosh'.
2010-08-21 10:58:31 +00:00
Benjamin Peterson
23110e7361
alias macintosh to mac_roman #843590
2010-08-21 02:54:44 +00:00
Benjamin Peterson
0cc7444ea9
speed hack can be implemented more cleanly by directly calling __new__
2010-08-21 02:45:15 +00:00
Benjamin Peterson
bf6f31b65f
use blank object instead
2010-08-21 02:43:31 +00:00
Benjamin Peterson
c3f810fb56
remove outdated comment
2010-08-21 02:41:33 +00:00
Victor Stinner
c44abb127b
Workaround issue #8611 in test_undecodable_code() of test_sys
...
Write test.support.workaroundIssue8611() function so it will be easier to
remove this workaround from all tests.
2010-08-20 16:52:14 +00:00
Victor Stinner
1b6372a1d1
test_undecodable_code(): set locale to C
...
The test is still failing on "x86 FreeBSD 7.2 3.x" and "sparc solaris10 gcc
3.x" buildbots. It looks like the locale encoding is able to decode b'\xff'. I
suppose that it is an encoding like 'iso-8859-1'.
Use C locale to set, I hope, the locale encoding to 'ascii'. Display also the
encoding so if the test fails, at least I will learn the locale encoding
choosen for the C locale.
2010-08-20 16:38:14 +00:00
Victor Stinner
e6376f8849
test_main_invalid_unicode() of test_sys: print string as ascii
...
There are buildbot failures on "x86 FreeBSD 3.x" and "sparc solaris10 gcc 3.x".
I suppose that _Py_char2wchar() doesn't fail even if the locale encoding is
unable to decode the byte string, because _Py_char2wchar() has a special mode
for platform without mbrtowc() (ISO C99) function.
Let's check my theory by avoid error on the Python print() instruction.
2010-08-20 11:08:18 +00:00
Vinay Sajip
89d8f82d01
Issue #7077 : Fixed bug in previous fix.
2010-08-20 08:43:22 +00:00
Vinay Sajip
467d12fcb2
Issue #7077 : Fixed SysLogHandler implementation of Unicode handling.
2010-08-19 22:20:22 +00:00
Amaury Forgeot d'Arc
12844e6df6
Add tests for r84209 (crashes in the Ast builder)
...
Also remove one tab, and move a check closer to the possible failure.
2010-08-19 21:32:38 +00:00
Senthil Kumaran
67a62a41b8
Fix Issue9639 - reset the retry count on successful auth.
2010-08-19 17:50:31 +00:00
Victor Stinner
5c1808a1a8
test_pep277: display the filename as ascii on failure
2010-08-19 17:35:00 +00:00
Victor Stinner
114b724a4b
Skip test_encodings() of test_os on Windows and Mac OS X
2010-08-19 17:22:57 +00:00
Victor Stinner
515ca2047d
test_main_invalid_unicode() of test_sys displays stderr on failure
2010-08-19 17:18:12 +00:00
Victor Stinner
38430e2dff
Fix os.get_exec_path() (code and tests) for python -bb
...
Catch BytesWarning exceptions.
2010-08-19 17:10:18 +00:00
Victor Stinner
99435247e3
Ooops, finish test_sys fix: use expected variable
2010-08-19 11:30:09 +00:00
Victor Stinner
85ca2afe3b
Fix test_sys about fs encoding for Windows and Mac OS X
...
* Check fs encoding value on Windows
* Ignore LANG= test on Windows and Mac OS X (fs encoding is hardcoded on these
platforms)
2010-08-19 11:23:47 +00:00
Victor Stinner
70f88c59eb
Fix test_os: workaround #8611 bug
2010-08-19 11:17:12 +00:00
Senthil Kumaran
f241afaead
Fix Issue9638 - remove dead code from py3k imaplib
2010-08-19 07:02:20 +00:00
Victor Stinner
e8d5145e18
Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
...
error handler, or strict error handler on Windows.
* Rewrite os.fsencode() documentation
* Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
environment variable
2010-08-19 01:05:19 +00:00
Victor Stinner
c732e3ba08
test_sys: move tests at the right place
...
filesystem encoding is not related to sys.sizeof()
2010-08-18 22:44:15 +00:00
Victor Stinner
398356baaa
Improve error message if the command is not decodable
2010-08-18 22:23:22 +00:00
Amaury Forgeot d'Arc
7e44b6b0c5
Add more tests to unicodedata with large code points
...
(the other functions where not affected by the recent change)
2010-08-18 22:07:15 +00:00
Victor Stinner
94908bbc15
Issue #8622 : Add PYTHONFSENCODING environment variable to override the
...
filesystem encoding.
initfsencoding() displays also a better error message if get_codeset() failed.
2010-08-18 21:23:25 +00:00
Amaury Forgeot d'Arc
56ab01b66a
Fix stupid typo in test.
2010-08-18 21:12:52 +00:00
Victor Stinner
74a833fa96
Decompose TESTFN_UNICODE on Mac OS X
2010-08-18 21:06:23 +00:00
Amaury Forgeot d'Arc
324ac65ceb
#5127 : Even on narrow unicode builds, the C functions that access the Unicode
...
Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept
and return characters from the full Unicode range (Py_UCS4).
The differences from Python code are few:
- unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit()
now return the correct value for large code points
- repr() may consider more characters as printable.
2010-08-18 20:44:58 +00:00
Antoine Pitrou
36e778ef02
Issue #9433 : The "-j" option to regrtest now works under Windows too.
...
It is not sure it will be beneficial, though, since process launching is
more expensive under Windows than it is under Linux.
2010-08-18 20:44:14 +00:00
Senthil Kumaran
7ff59131f8
Fix Issue672656 - Securing pydoc server.
2010-08-18 19:32:21 +00:00
Victor Stinner
d91df1a7a9
Improve PEP 383 tests (in test_os)
...
* Use the current filesystem encoding instead of always using utf-8
* Enable the test on Mac OS X
* Use TESTFN_UNENCODABLE and TESTFN_UNICODE instead of arbitrary filenames
* To decode a filename, use strict error handler instead surrogateescape for
mbcs encoding (on Windows)
* Use TESTFN_UNENCODABLE (if available) for the directory name
Skip the test if no non-ascii filename can be created.
2010-08-18 10:56:19 +00:00
Antoine Pitrou
79c5ef11d5
Issue #3488 : Provide convenient shorthand functions `gzip.compress`
...
and `gzip.decompress`. Original patch by Anand B. Pillai.
2010-08-17 21:10:05 +00:00
Giampaolo Rodolà
42382fedcc
fix issue #8807 : adds a context parameter to POP3_SSL class.
2010-08-17 16:09:53 +00:00
Giampaolo Rodolà
ccfb91c89f
fix issue #8866 : parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
2010-08-17 15:30:23 +00:00
Nick Coghlan
d26c18adcc
Issue #8202 : Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
2010-08-17 13:06:11 +00:00
Nick Coghlan
46e6380563
Another attempt at pacifying the windows buildbots by ignoring all the variable information in the dis.code_info tests
2010-08-17 11:28:07 +00:00
Nick Coghlan
09c8123e6f
Address XXX comment in dis.py: inspect.py now attempts to reuse the dis.py compiler flag values before resorting to defining its own
2010-08-17 10:18:16 +00:00
Nick Coghlan
77203adb7e
Ignore the exact ID value for the nested function in the dis.code_info tests
2010-08-17 09:25:57 +00:00
Ezio Melotti
fc8b205da2
Correct a couple of assert* methods. Patch by Dave Malcolm.
2010-08-17 08:35:41 +00:00
Nick Coghlan
eae2da1da7
Issue 9147: Add dis.code_info()
2010-08-17 08:03:36 +00:00
Nick Coghlan
9887683f74
Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
2010-08-17 06:17:18 +00:00
Benjamin Peterson
052a02be4a
add tests for mknod() and mkfifo() #9569
2010-08-17 01:27:09 +00:00
Benjamin Peterson
82c4885210
remove test for oldstyle classes
2010-08-17 01:08:46 +00:00
Benjamin Peterson
83cd3b91e2
use assertTrue/assertFalse
2010-08-17 01:07:53 +00:00
Benjamin Peterson
45c257f193
add support for abstract class and static methods #5867
2010-08-17 00:52:52 +00:00
Victor Stinner
36e791179c
test_zipimport: fix test name
2010-08-17 00:44:11 +00:00
Alexander Belopolsky
977a684c94
Issue #8983 : Corrected docstrings.
2010-08-16 20:17:07 +00:00
Florent Xicluna
c9c29e2ab2
I get it wrong in r84097: s/relative/absolute/
2010-08-16 19:03:05 +00:00
Alexander Belopolsky
e29e6bffb5
Issue #665761 : functools.reduce() will no longer mask exceptions other
...
than TypeError raised by the iterator argument. Also added a test to
check that zip() already behaves similarly.
2010-08-16 18:55:46 +00:00
Florent Xicluna
27354ccec9
Use test.support and unittest features. Fix duplicated test (bad merge in r79033). Fix comment for issue #7902 .
2010-08-16 18:41:19 +00:00
Victor Stinner
2460a43a65
Issue #9425 : read_directory() is fully unicode compliant
...
zipimport is now able to load a module with an unencodable filename.
2010-08-16 17:54:28 +00:00
Antoine Pitrou
982c018b32
Remove debug hack
2010-08-16 14:33:42 +00:00
Giampaolo Rodolà
677d95c258
fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto'
2010-08-16 05:08:11 +00:00
Richard Jones
daf235032f
close down sockets held by asyncore at end of test; closes issue9619
2010-08-16 01:48:14 +00:00
Antoine Pitrou
b14ac8c2b0
Save and restore the global asyncore.socket_map, and warn if a test modified it
2010-08-16 00:28:05 +00:00
Antoine Pitrou
ed9863685f
Add debug output to the asyncore test
2010-08-15 23:28:10 +00:00
Antoine Pitrou
f4c7badc02
Put test_ciphers in NetworkedTests
2010-08-15 23:02:22 +00:00
Antoine Pitrou
968dc03f24
Following Ezio's suggestion, force verbose mode on test_ssl to diagnose freezes on 3.x
2010-08-15 22:16:23 +00:00
Florent Xicluna
dc692740a8
Replace the deprecated ConfigParser.readfp() method, and fix the incomplete merge in r82293.
2010-08-15 20:16:27 +00:00
Victor Stinner
a0241c8587
Fix TESTFN_UNENCODABLE of test.support on Mac OS X
2010-08-15 19:28:21 +00:00
Raymond Hettinger
0b5669c0f5
Fix __all__.
2010-08-15 07:41:40 +00:00
Raymond Hettinger
bc653d1abe
Remove unused imports
2010-08-15 03:35:24 +00:00
Raymond Hettinger
f309828175
Remove the lfu_cache. Add more tests.
2010-08-15 03:30:45 +00:00
Raymond Hettinger
0f56e90f05
Support cache sizes.
2010-08-14 23:52:08 +00:00
Raymond Hettinger
5202fadb2c
Localize one more builtin lookup.
2010-08-14 22:29:52 +00:00
Raymond Hettinger
cbe8813f18
Add locks to make the caches well behaved in multi-threaded code.
...
Store builtins in cell variables to speed-up the common path,
reducing the chance of a lock needing to block at all.
2010-08-14 22:22:10 +00:00
Raymond Hettinger
d9e8cc6249
Clean-up the cache patch for the re module.
2010-08-14 21:17:48 +00:00
Florent Xicluna
62829dc727
Silence BytesWarning while testing exception
2010-08-14 20:51:58 +00:00
Florent Xicluna
82a3f8afcb
Silence the BytesWarning, due to patch r83294 for #9301
2010-08-14 18:30:35 +00:00
Victor Stinner
03c9e1dbc2
Mac OS X denies unencodable filenames (invalid utf-8)
2010-08-14 17:35:20 +00:00
Giampaolo Rodolà
419f704d76
fix issue #8857 : provide a test case for socket.getaddrinfo
2010-08-14 16:45:41 +00:00
Antoine Pitrou
ab6190f9aa
There doesn't seem to be a reason for this test to be disabled.
2010-08-14 16:33:38 +00:00
Antoine Pitrou
d151e27446
This is a better resolution than r84021 (because it will also affect
...
ssl.get_server_certificate()).
2010-08-14 16:32:10 +00:00
Antoine Pitrou
35bebe12e0
Add a reasonable timeout to network SSL tests, so as to avoid buildbot timeouts
...
when the remote server doesn't answer.
2010-08-14 16:24:38 +00:00
Florent Xicluna
aa17106e41
Merged manually from 2.7 branch to 3.x trunk.
...
------------------------------------------------------------------------
r79925 | nick.coghlan | 2010-04-10 16:24:36 +0200 (sam. 10 avril 2010)
Try to turn some buildbots green by allowing test_multiprocessing to
pass even if it hits the sys.exc_clear code in the threading module, and
improve the test coverage by making the ctypes dependencies a bit more
granular (two of the cited ctypes objects don't exist on my system)
------------------------------------------------------------------------
2010-08-14 15:56:42 +00:00
Éric Araujo
da668ff24f
Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688 .
2010-08-14 02:30:34 +00:00
Antoine Pitrou
e9b428f997
Reimplement addbuilddir() in C inside getpath.c, so as to execute it
...
at interpreter startup before importing any non-builtin modules.
Should fix #9589 .
2010-08-13 22:25:01 +00:00
Victor Stinner
09c449c7de
Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE
2010-08-13 22:23:24 +00:00
Brian Curtin
d835cf1c84
Fix #9588 . Add sys.executable to two shell=True tests.
2010-08-13 20:42:57 +00:00
Victor Stinner
ddfb2c3a33
Issue #9560 : Use -b option of the file command in _syscmd_file()
...
Omit the filename to avoid enconding issues, especially with non encodable
characters in the Python full path.
2010-08-13 16:30:15 +00:00
Antoine Pitrou
3060c4573f
Reapply r83877.
2010-08-13 16:27:38 +00:00
Antoine Pitrou
6fdb74f0ae
Re-apply r83871.
2010-08-13 16:26:40 +00:00
Victor Stinner
b4b8eb9163
Oops, I did it again: add missing \ removed in previous commit
2010-08-13 13:47:18 +00:00
Victor Stinner
11fd4e962d
Oops, create TESTFN_UNENCODEABLE from TEST_FN, not TESTFN_UNICODE
...
test_imp fails on Linux with C locale because TESTFN_UNICODE is not encodable
to ascii.
2010-08-13 13:45:00 +00:00
Victor Stinner
1a4d12d746
Issue #9425 : NullImporter constructor is fully unicode compliant
...
* On non-Windows OSes: the constructor accepts bytes filenames
and use surrogateescape for unicode filenames
* On Windows: use GetFileAttributesW() instead of GetFileAttributesA()
2010-08-13 13:07:29 +00:00
Victor Stinner
3d85a6fa04
Set TESTFN_UNENCODEABLE on non-Windows OSes
...
* Use 0xff byte on non-Windows OSes
* mbcs is now really strict by default: i closed the issue #850997 , so use the
filesystem encoding and not Latin-1
* Rename TESTFN_UNICODE_UNENCODEABLE to TESTFN_UNENCODEABLE
2010-08-13 13:02:04 +00:00
Eric Smith
994addc414
Remove unused test class.
2010-08-12 21:55:30 +00:00
Antoine Pitrou
7c8bcb6f92
Issue #7467 : when a file from a ZIP archive, its CRC is checked and a
...
BadZipfile error is raised if it doesn't match (as used to be the
case in Python 2.5 and earlier).
2010-08-12 15:11:50 +00:00
Tim Golden
3a879e8a27
#9055 : remove assertion at the end of test_8959_b since the test is about crashing, not about counting and is difficult to manage when run as a service
2010-08-11 15:59:57 +00:00
Tim Golden
126c2960ca
#2304 : fix incorporating Eric Smith's .format suggestion and tested on Ubuntu as well as Windows
2010-08-11 14:20:40 +00:00
Antoine Pitrou
32cfedeb1c
Issue #9550 : a BufferedReader could issue an additional read when the
...
original read request had been satisfied, which can block indefinitely
when the underlying raw IO channel is e.g. a socket. Report and original
patch by Jason V. Miller.
2010-08-11 13:31:33 +00:00
Mark Dickinson
cf940c701f
Issue #9530 : Fix undefined-behaviour-inducing overflow checks in bytes and bytearray implementations.
2010-08-10 18:35:01 +00:00
Antoine Pitrou
817c9df7e5
test_winsound shouldn't crash when ctypes isn't available
2010-08-10 00:45:32 +00:00
Antoine Pitrou
5af4f4b983
Issue #3757 : thread-local objects now support cyclic garbage collection.
...
Thread-local objects involved in reference cycles will be deallocated
timely by the cyclic GC, even if the underlying thread is still running.
2010-08-09 22:38:19 +00:00
Antoine Pitrou
6e451df800
Followup to r83869 and issue #8524 : rename socket.forget() to socket.detach()
...
and make it return the file descriptor.
2010-08-09 20:39:54 +00:00
Senthil Kumaran
30e86a4767
Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules.
2010-08-09 20:01:35 +00:00
Florent Xicluna
87082ee14d
Merged manually from 2.7 branch to 3.x trunk.
...
------------------------------------------------------------------------
r81149 | florent.xicluna | 2010-05-13 23:40:01 +0200 (jeu. 13 mai 2010) | 2 lignes
Better test skipping, with message in the log.
------------------------------------------------------------------------
r81150 | florent.xicluna | 2010-05-13 23:41:05 +0200 (jeu. 13 mai 2010) | 2 lignes
Improve test feedback to troubleshoot issue #8423 on OS X.
------------------------------------------------------------------------
r81151 | florent.xicluna | 2010-05-14 01:46:48 +0200 (ven. 14 mai 2010) | 2 lignes
Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.
------------------------------------------------------------------------
r82056 | florent.xicluna | 2010-06-17 22:30:56 +0200 (jeu. 17 juin 2010) | 2 lignes
Add few words about test.test_genericpath.CommonTest
------------------------------------------------------------------------
2010-08-09 17:18:05 +00:00