Commit Graph

44585 Commits

Author SHA1 Message Date
Senthil Kumaran 420ec8a0cd Fix Issue5650 - Update the RFC List in the urlparse module. 2010-04-17 14:30:53 +00:00
R. David Murray e0e8a87d7e Issue #3864: Skip three test_signal tests on freebsd6 due to platform bug.
Two itimer tests and an interprocess signal test fail on FreeBSD 6 if
any test that starts a thread runs before test_signal.  Since FreeBSD7
does not show this behavior, the bug is most likely a platform bug,
so this patch just skips the failing tests on freebsd6.
2010-04-17 05:26:26 +00:00
Benjamin Peterson ae530c2bab tiny simplification 2010-04-16 22:52:44 +00:00
Benjamin Peterson 821a8ea39f have a clear error when passing something > sys.maxsize to bytearray 2010-04-16 22:35:38 +00:00
Benjamin Peterson 5c4e292c14 fix typo 2010-04-16 22:25:57 +00:00
Benjamin Peterson 06f06a0b2f bytearray -> type2test 2010-04-16 22:24:16 +00:00
Benjamin Peterson e7ebdc2a61 remove check for unicode 2010-04-16 21:55:10 +00:00
Antoine Pitrou 9642d60bd0 Ignore jinja2 2010-04-16 21:34:02 +00:00
Senthil Kumaran 8c6d9d7c8d Fix issue2987: RFC2732 support for urlparse (IPv6 addresses) 2010-04-16 02:46:46 +00:00
Benjamin Peterson b7b7c77eb3 add space 2010-04-15 21:42:16 +00:00
Andrew M. Kuchling 85f928a5c9 Add various items 2010-04-15 01:42:27 +00:00
Brian Curtin b3dde13413 Fix os.kill tests to be more robust and work with slower machines.
Rather than depending on some sleep value, start up an interpreter
as a subprocess and communicate with it. Because subprocess pipes
can't be read from until EOF and I want to read from them before that,
use ctypes to peek by using PeekNamedPipe. Once the subprocess has
written the message, then it is ready to roll and accept signals.
After that, kill it.
2010-04-15 00:40:40 +00:00
Andrew M. Kuchling 363dbccb2a Add various items; correct argparse output 2010-04-14 23:55:17 +00:00
Georg Brandl 9f5fd6092b Fix missing. 2010-04-14 21:46:45 +00:00
Georg Brandl c9a8a4aab8 #8370: fix module name in backported doc addition. 2010-04-14 21:36:49 +00:00
Georg Brandl 710a5dbc4a #5250: document __instancecheck__ and __subclasscheck__. I hope the part about the class/metaclass distinction is understandable. 2010-04-14 21:34:44 +00:00
Georg Brandl 4a589c3ede #8399: add note about Windows and O_BINARY. 2010-04-14 19:16:38 +00:00
Andrew M. Kuchling b6c1aeb486 Add some text 2010-04-14 14:28:31 +00:00
Georg Brandl 6c50efe76b Add an x-ref to where the O_ constants are documented and move the SEEK_ constants after lseek(). 2010-04-14 13:50:31 +00:00
Georg Brandl ea56710cda #5341: fix typo and adapt docstring syntax. 2010-04-14 08:56:01 +00:00
Georg Brandl 4fabac545e #5341: typo. 2010-04-14 08:53:38 +00:00
Brian Curtin 235350a142 Add a small sleep to let a subprocess start before terminating it.
David Bolen's buildbot isn't know for it's speed, and it seems that we
may have been trying to kill the subprocess before it was fully
initialized. I ran with this change on the bot itself and it seemed to work.
2010-04-14 02:24:24 +00:00
Andrew M. Kuchling f03641ace3 Add argparse example 2010-04-14 01:14:59 +00:00
R. David Murray 661303f27e Issue #5277: Fix quote counting when parsing RFC 2231 encoded parameters. 2010-04-13 20:57:40 +00:00
Antoine Pitrou b6705ac59c Fix overzealous patterns in .hgignore, which used to hide files containing e.g. "python".
(also an occasional source of bugs on the hgsvn-generated hg mirrors)
2010-04-13 17:36:07 +00:00
Mark Dickinson 2c4798b1fd In test_winsound, don't try to import _winreg until after checking that winsound is supported. 2010-04-13 11:37:23 +00:00
Georg Brandl d0731072a9 Get rid of multi-row cells. 2010-04-13 06:43:54 +00:00
Brian Curtin d5c50b32aa Fix #7306. Add skips to test_winsound when no default sound is configured.
These failures occur on a Windows Server 2003 machine I test on.
2010-04-13 02:25:20 +00:00
Andrew M. Kuchling ce6905245b Add an item; stray edit 2010-04-13 01:32:51 +00:00
Brian Curtin bc96f3272d Fix #8364. Update the setquit docstring and change a built-in to builtin. 2010-04-12 23:30:49 +00:00
Raymond Hettinger 44340e6d78 Add usage notes for collections.Counter(). 2010-04-12 21:12:06 +00:00
Mark Dickinson 78ab583d63 More struct doc tweaks. 2010-04-12 20:38:36 +00:00
Mark Dickinson b633f10f81 Rewrap some long lines in struct module doc source. 2010-04-12 19:46:20 +00:00
Mark Dickinson bbacb838c9 Issue #7355: Various improvements to struct module documentation.
- note early on that the result of struct.pack includes padding
   bytes by default

 - add examples showing how order of struct fields can affect size
   (due to padding)

 - better headers and references; introduction to format strings

 - integrate packing notes into table

Many thanks to Meador Inge for the patch.
2010-04-12 19:25:32 +00:00
Brian Curtin 4e20ab24cf Update the Windows FAQ's text about os.kill (#1220212). 2010-04-12 18:07:21 +00:00
R. David Murray 1a14d3d169 Issue #7585: use tab between components in unified and context diff headers.
Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs.  This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs.  This improves compatibility with
patch tools.  The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.

Patch by Anatoly Techtonik.
2010-04-12 16:35:19 +00:00
Stefan Krah 9aca91d7d7 Issue #8367: Fix spurious test failure on systems without a sound card. 2010-04-12 15:21:25 +00:00
Barry Warsaw fa900d47b8 typo 2010-04-12 14:40:49 +00:00
R. David Murray 27ef93797c Issue #7472: ISO-2022 charsets now consistently use 7bit CTE.
Fixed a typo in the email.encoders module so that messages output using
an ISO-2022 character set will use a content-transfer-encoding of
7bit consistently.  Previously if the input data had any eight bit
characters the output data would get marked as 8bit even though it
was actually 7bit.
2010-04-12 14:26:06 +00:00
Senthil Kumaran d10b65eb68 Adding additional examples of valid urls as per RFC 3986 (for issue8339) 2010-04-12 06:50:24 +00:00
Martin v. Löwis 5a96543b36 Re-enable all tests, to see which ones fail on the buildbots. 2010-04-12 05:22:25 +00:00
Martin v. Löwis 7f7765ce39 Issue #8330: Fix expected output in test_gdb. 2010-04-12 05:18:16 +00:00
Antoine Pitrou 98431789fb It is possible to add extra testing options using EXTRATESTOPTS.
When such extra options include "-x testname", subsequent arguments
are all taken as test names to ignore. Therefore, standard options
must be passed before *TESTOPTS.

(witnessed on the ARM buildbots)
2010-04-12 00:10:46 +00:00
Antoine Pitrou ab5ce720e2 Fix misplaced items and incorrect title. 2010-04-11 22:45:47 +00:00
Antoine Pitrou fc53153498 Issue #8374: Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.
2010-04-11 22:32:39 +00:00
Andrew M. Kuchling 4515f0de21 Add several items 2010-04-11 20:40:09 +00:00
Raymond Hettinger fdf1b5642b Minor factoring 2010-04-11 20:39:28 +00:00
Stefan Krah a185839862 Fix for issues #3581, #1481 and #7650:
1. The assumptions in check_node() were too restrictive:

     - Hardware addresses with universal_local_bit=1 are valid
       (locally administered).

     - Many of the tested functions (including uuid.getnode())
       may return valid RFC 4122 random node IDs. These are pretty
       much random 48-bit values with the multicast bit set to 1.

2. _unixdll_getnode() calls _uuid_generate_time(), which may be None
   on some platforms. The resulting TypeError is now caught.
2010-04-11 15:15:54 +00:00
Andrew M. Kuchling 6d7dfa231f Add two items 2010-04-11 12:49:37 +00:00
Andrew M. Kuchling 884d0a3c27 Two typo fixes 2010-04-11 12:48:08 +00:00