Commit graph

14654 commits

Author SHA1 Message Date
Mark Dickinson
bb3895cfc6 Expand test coverage for struct.pack with native integer packing;
reorganize the test_struct module to remove duplicated code and tests.
2009-07-07 14:15:45 +00:00
Mark Dickinson
ca6b5f36f4 Add skipping to struct test that only applies when overflow masking is in effect 2009-07-07 11:08:23 +00:00
Kristján Valur Jónsson
c71fae5ad7 http://bugs.python.org/issue6382
added the shutdown_request() which can perform shutdown before calling close.  This is needed for the ForkingMixIn because different close semantics are required for child and parent process.  shutdown_request(), for TCP servers, calls socket.shutdown() and then calls close_request().  Therefore, this is not an backwards incompatible change, since subclasses that continue to override close_request() continue to work.
2009-07-07 09:01:34 +00:00
R. David Murray
23a736a4f0 Issue 6070: when creating a compiled file, after copying the mode bits, on
posix zap the execute bit in case it was set on the .py file, since the
compiled files are not directly executable on posix.  Patch by Marco N.
2009-07-07 01:06:13 +00:00
Tarek Ziadé
e670e5ad5b Fixed #6377: distutils compiler switch ignored (and added a deprecation warning if compiler is not used as supposed = a string option) 2009-07-06 12:50:46 +00:00
Kristján Valur Jónsson
f5b8ea9128 http://bugs.python.org/issue6382
close_request() (which can send a socket.shutdown()) must be called by the child process in a forking server.  The parent must merely close the socket handle.
2009-07-05 20:56:57 +00:00
Mark Dickinson
463dc4bf26 Issues #1530559, #1741130: Fix various inconsistencies in struct.pack
integer packing, and reenable some previously broken tests.
2009-07-05 10:01:24 +00:00
Alexandre Vassalotti
5b1abb7bb0 Backport test cases added in r73852. 2009-07-05 06:33:41 +00:00
Alexandre Vassalotti
16a0247393 Fix bad variable name in r73846. 2009-07-05 04:25:46 +00:00
Alexandre Vassalotti
0fe799151f Issue 2370: Add Python 3 warnings for the removal of operator.isCallable and
operator.sequenceIncludes.

Patch contributed by Jeff Balogh (and updated slightly by me).
2009-07-05 04:22:40 +00:00
Ezio Melotti
e7a0cc2aa8 if zlib -> skipUnless(zlib) and minor cleanups 2009-07-04 14:58:27 +00:00
Gregory P. Smith
1844b0d748 Merge r73838 from py3k branch. Use the nondeprecated unittest method
names.
2009-07-04 08:42:10 +00:00
Tarek Ziadé
cd947e0c6a using print statements when used for user interaction 2009-07-04 02:59:19 +00:00
Tarek Ziadé
63f1738d4b Fixed #6413: fixed log level in distutils.dist.announce 2009-07-04 02:02:41 +00:00
Gregory P. Smith
dd7ca24eb5 Use select.poll() in subprocess, when available, rather than select() so that
it does not fail when file descriptors are large.  Fixes issue3392.

Patch largely contributed by Frank Chu (fpmc) with some improvements by me.
See http://bugs.python.org/issue3392.

Candidate for backporting to release26-maint as it is a bug fix and changes no
public API.
2009-07-04 01:49:29 +00:00
Kristján Valur Jónsson
e5445da631 http://bugs.python.org/issue6267
Incorrect exception handling for xmlrpc client retry
2009-07-03 23:29:50 +00:00
Kristján Valur Jónsson
f83648ef48 http://bugs.python.org/issue6267
Incorrect exception handling for xmlrp client retry
2009-07-03 23:26:02 +00:00
Kristján Valur Jónsson
b5faac73a4 http://bugs.python.org/issue6381
some platforms may raise ENOTCONN if the stack has disconnected the socket on behalf of the peer.
2009-07-03 23:07:07 +00:00
Tarek Ziadé
9ad7bbc637 cleaned distutils.file_util 2009-07-03 19:14:49 +00:00
Tarek Ziadé
eea9d0d846 basic tests to raise distutils.file_util coverage 2009-07-03 19:01:12 +00:00
Tarek Ziadé
fe97ebbf62 cleaned up distutils.command.build_py 2009-07-03 09:01:07 +00:00
Tarek Ziadé
65ec61ed06 Fixed #6403 : package path usage for build_ext 2009-07-03 08:22:56 +00:00
Benjamin Peterson
50a2252851 condense with assertRaises 2009-07-02 22:56:16 +00:00
Benjamin Peterson
d3243d8db8 test that compile() accepts the future flag 2009-07-02 21:38:36 +00:00
Benjamin Peterson
753d16234f when print() gets unicode arguments, sep and end should be unicode by default #4618 2009-07-02 18:16:45 +00:00
Benjamin Peterson
1bf4765369 only order comparisons are removed in py3k #6119 2009-07-02 17:06:17 +00:00
Benjamin Peterson
0c6de43dd9 remove this test; a module level warning is enough 2009-07-02 16:51:56 +00:00
Tarek Ziadé
3757fbba25 pep8-fied and cleaned up distutils.util 2009-07-02 14:20:47 +00:00
Tarek Ziadé
85bb62872d cleaned up the bdist_dumb module 2009-07-02 12:51:56 +00:00
Tarek Ziadé
d0ca455368 raising bdist_dumb test coverage 2009-07-02 12:47:54 +00:00
Benjamin Peterson
4f24767938 proxy the __exit__ call 2009-07-01 13:34:35 +00:00
Benjamin Peterson
7e2801d1b5 Merged revisions 73379,73388,73507,73722 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r73379 | benjamin.peterson | 2009-06-11 18:06:21 -0500 (Thu, 11 Jun 2009) | 1 line

  use a real conditional expresion
........
  r73388 | benjamin.peterson | 2009-06-12 09:44:29 -0500 (Fri, 12 Jun 2009) | 1 line

  fix typo in last fix
........
  r73507 | benjamin.peterson | 2009-06-22 13:32:04 -0500 (Mon, 22 Jun 2009) | 1 line

  remove svn:executable property
........
  r73722 | benjamin.peterson | 2009-06-30 19:44:30 -0500 (Tue, 30 Jun 2009) | 1 line

  replace fail* with assert*
........
2009-07-01 00:49:09 +00:00
Benjamin Peterson
4d3f18f2ed fix a few cases where automated fail -> assert translation messed up
Thanks Joe Amenta
2009-07-01 00:36:41 +00:00
Benjamin Peterson
6b0032f2c3 use assert* methods in test_unittest 2009-06-30 23:30:12 +00:00
Benjamin Peterson
5c8da86f3a convert usage of fail* to assert* 2009-06-30 22:57:08 +00:00
Benjamin Peterson
31f42ab254 provide a dummy __exit__ on windows 2009-06-30 22:14:33 +00:00
Jesse Noller
1b90efbdc5 Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes 2009-06-30 17:11:52 +00:00
Raymond Hettinger
5dfc7f9fc8 Issue 6370: Performance issue with collections.Counter(). 2009-06-29 19:10:29 +00:00
Tarek Ziadé
3fbcc60eb8 Fixed 6365: wrong inplace location for build_ext if the extension had dots 2009-06-29 16:13:39 +00:00
Antoine Pitrou
79c3bd80ed Backport fix for buglet from py3k 2009-06-29 14:14:56 +00:00
Kristján Valur Jónsson
e007860b8b http://bugs.python.org/issue6267
Cumulative patch to http and xmlrpc
2009-06-28 21:04:17 +00:00
Benjamin Peterson
552e7a7e2f return locals and cells in get_locals() not bound globals, though 2009-06-28 19:27:55 +00:00
Georg Brandl
a4c622972a Remove stray pychecker directive. 2009-06-28 12:10:18 +00:00
Gregory P. Smith
2662733bce Fixes the last problem mentioned in issue1202. 2009-06-26 07:50:21 +00:00
Amaury Forgeot d'Arc
595f7a5bf9 #2016 Fix a crash in function call when the **kwargs dictionary is mutated
during the function call setup.

This even gives a slight speedup, probably because tuple allocation
is faster than PyMem_NEW.
2009-06-25 22:29:29 +00:00
Kristján Valur Jónsson
f1d11efb72 http://bugs.python.org/issue6192
Move the newly introduced disable_nagle_algorithm flag into the StreamRequestHandler, where it is more appropriate.
2009-06-24 09:17:04 +00:00
Amaury Forgeot d'Arc
14fc673d4f Remove the ipaddr module per discussion on python-dev 2009-06-23 21:09:09 +00:00
Raymond Hettinger
62641e9534 Issue 6329: Fix iteration for memoryviews. 2009-06-23 20:59:43 +00:00
R. David Murray
ef087da9e7 Fix issue 5230 by having pydoc's safeimport check to see if the import
error was thrown from itself in order to decide if the module can't be
found.  Thanks to Lucas Prado Melo for collaborating on the fix and tests.
2009-06-23 18:02:46 +00:00
Nick Coghlan
3a1dbb05a1 Remove markup from docstring 2009-06-23 10:51:02 +00:00