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
Brett Cannon
2525dc8fb6
Under OS X, history_get from readline returns a const char *, but the local
...
variable the return value is assigned to is char *. Since the assigned-to
variable is never changed, simply make that a const char * and cast all calls
to get_history to const char * to silence the compiler warning (found with
LLVM).
2010-08-22 20:36:25 +00:00
Georg Brandl
6a74da3cdb
#9649 : fix default value description.
2010-08-22 20:23:38 +00:00
Daniel Stutzbach
51a059bc83
Added myself to Misc/maintainers.rst for topics on which I'd like to be added to the nosy list
2010-08-22 19:41:04 +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
d41a37a148
Updated maintainers.rst to reflect correct Roundup name.
2010-08-22 18:41:24 +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
Martin v. Löwis
7ebe4f9209
Add Daniel Stutzbach.
2010-08-22 08:46:19 +00:00
Raymond Hettinger
819a064556
Issue 8403: Don't mask KeyboardInterrupt during peephole operation.
2010-08-22 08:39:49 +00:00
Raymond Hettinger
9117c75148
Issue #9214 : Fix set operations on KeysView and ItemsView.
2010-08-22 07:44:24 +00:00
Georg Brandl
a52bae7521
Remove usage of rexec in tkinter demo.
2010-08-21 23:20:01 +00:00
Benjamin Peterson
3cabbeb077
fix old markup
2010-08-21 21:23:28 +00:00
Giampaolo Rodolà
6545ed6e4f
remove obsolete 'import SOCKS' statement
2010-08-21 20:34:37 +00:00
Benjamin Peterson
2d55e2aab3
provide sample implementations for attrgetter and methodcaller
2010-08-21 20:08:36 +00:00
Benjamin Peterson
c16f8b33e0
fix more indentation
2010-08-21 20:03:15 +00:00
Benjamin Peterson
ffec810d88
indent properly
2010-08-21 20:01:28 +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
Senthil Kumaran
6cbe4275cb
Add info about HTTP/1.1 and Connection:Close header.
2010-08-21 16:08:32 +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
Tim Golden
0ceb671aff
Remove long-redundant plat-win from sys.path on Windows
2010-08-20 08:31:26 +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
Vinay Sajip
8101021eae
Issue #9606 : Updated documentation for Filter objects.
2010-08-19 19:17:41 +00:00
Senthil Kumaran
67a62a41b8
Fix Issue9639 - reset the retry count on successful auth.
2010-08-19 17:50:31 +00:00
Amaury Forgeot d'Arc
92dc80a8d8
Check the return values for all functions returning an ast node.
...
Failure to do it may result in strange error messages or even crashes,
in admittedly convoluted cases that are normally syntax errors, like:
def f(*xx, __debug__): pass
2010-08-19 17:43:15 +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
9802b39c12
PYTHONFSENCODING is not available on Windows or Mac OS X
2010-08-19 11:36:43 +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