Commit graph

1912 commits

Author SHA1 Message Date
Michael Foord
5074df623b Issue 7911: unittest.TestCase.longMessage defaults to True for improved failure messages by default 2010-12-03 00:53:09 +00:00
Georg Brandl
1203720ffb Re-add accidentally removed line. 2010-12-02 22:35:25 +00:00
R. David Murray
a0b44b5adb #8989: add 'domain' keyword to make_msgid.
Patch by Adrian von Bidder.
2010-12-02 21:47:19 +00:00
Brian Curtin
52173d4959 Fix #9333. Expose os.symlink on Windows only when usable.
In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege
is an account privilege that is required to be held by the user. Not only
must the privilege be enabled for the account, the activated privileges for
the currently running application must be adjusted to enable the requested
privilege.

Rather than exposing an additional function to be called prior to the user's
first os.symlink call, we handle the AdjustTokenPrivileges Windows API call
internally and only expose os.symlink when the privilege escalation was
successful.

Due to the change of only exposing os.symlink when it's available, we can
go back to the original test skipping methods of checking via `hasattr`.
2010-12-02 18:29:18 +00:00
Georg Brandl
02524629f3 #7475: add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2. 2010-12-02 18:06:51 +00:00
Georg Brandl
c1673681fd Fix-up documentation of makedirs(). 2010-12-02 09:06:12 +00:00
Terry Reedy
5a22b65117 Issue 9299 Add exist_ok parameter to os.makedirs to suppress 'File exists' exception. Patch by Ray Allen. 2010-12-02 07:05:56 +00:00
Raymond Hettinger
3cdf871a8c Neaten-up random module docs. 2010-12-02 05:35:35 +00:00
Raymond Hettinger
2fdc7b1f75 Add an example to the random docs. 2010-12-02 02:41:33 +00:00
Raymond Hettinger
30c7362436 Clean-up last update (missing comma, unnecessary spacing change, spurious backtick). 2010-12-01 23:45:20 +00:00
Raymond Hettinger
adb8146e53 Add itertools.accumulate(). 2010-12-01 22:50:36 +00:00
Georg Brandl
419e3de373 Fix some markup and style in the unittest docs. 2010-12-01 15:44:25 +00:00
Raymond Hettinger
5ce0aa236f Add recipe to itertools doc. 2010-12-01 10:49:19 +00:00
Raymond Hettinger
c79fb0e52d Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None. 2010-12-01 03:45:41 +00:00
Ezio Melotti
ed3a7d2d60 #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
Ezio Melotti
6090187656 #10535: Enable silenced warnings in unittest by default 2010-12-01 00:56:10 +00:00
Raymond Hettinger
00f2f97dbd Doc and docstring nits. 2010-12-01 00:47:56 +00:00
Raymond Hettinger
cc03858d8f Documentation nits. 2010-11-30 20:02:57 +00:00
Raymond Hettinger
7496b4171e Add example, tighten text, and minor clean-ups. 2010-11-30 19:15:45 +00:00
Daniel Stutzbach
d01df46848 Fix typo: "ofbytes" should be "of bytes" 2010-11-30 17:49:53 +00:00
Raymond Hettinger
dcb4491b0a Add some internal links. 2010-11-30 17:45:41 +00:00
Éric Araujo
ff2a4ba78c Let’s keep “throw” for the generator method and use “raise” elsewhere. 2010-11-30 17:20:31 +00:00
Nick Coghlan
9fc443cf59 Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings 2010-11-30 15:48:08 +00:00
Georg Brandl
5aa580f279 Fix typo. 2010-11-30 14:57:54 +00:00
Georg Brandl
8f358aa758 #10584: fix bad links. 2010-11-30 07:43:28 +00:00
Raymond Hettinger
5e20bab422 Neaten-up a bit. 2010-11-30 07:13:04 +00:00
Nick Coghlan
234515afe5 Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple. 2010-11-30 06:19:46 +00:00
Georg Brandl
8175daec10 Fix heading style inconsistencies. 2010-11-29 14:53:15 +00:00
Georg Brandl
51be98a920 Fix indentation bug. 2010-11-29 14:50:54 +00:00
Senthil Kumaran
6f1070485f Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
2010-11-29 11:54:17 +00:00
Raymond Hettinger
40b8cf528f Do not add an obsolete unittest name to Py3.2. 2010-11-29 01:38:25 +00:00
Ezio Melotti
1de911592e Add callable() to the built-in functions table. 2010-11-28 04:18:54 +00:00
Benjamin Peterson
f6861ae12a there's now a setup.py switch for this 2010-11-28 02:51:28 +00:00
Antoine Pitrou
e71362d3de Issue #10518: Bring back the callable() builtin.
Approved by Guido (BDFL) and Georg (RM).
2010-11-27 22:00:11 +00:00
Terry Reedy
dc9b17d922 Add version-added note twice for new difflib SequenceMatcher autojunk parameter. 2010-11-27 20:52:14 +00:00
Raymond Hettinger
6e165b30de Issue 10242: unittest.assertItemsEqual makes too many assumptions. 2010-11-27 09:31:37 +00:00
Éric Araujo
76338ec37d Rewrap long lines + minor edits 2010-11-26 23:46:18 +00:00
Éric Araujo
8acb67c059 Use link-generating markup (see #9312) 2010-11-26 23:31:07 +00:00
Georg Brandl
62f52c484d Remove parenthetical remark that is confusing now that the module is not named "__builtin__" anymore. 2010-11-26 12:08:19 +00:00
Georg Brandl
f51a6c7d74 #10420: fix docs of bdb.effective(). 2010-11-26 12:05:48 +00:00
Eric Smith
984bb58000 Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 2010-11-25 16:08:06 +00:00
Terry Reedy
99f9637de8 Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross 2010-11-25 06:12:34 +00:00
Ezio Melotti
17f9b3d289 Add NEWS entry for r86732 and fix double function in the table. 2010-11-24 22:02:18 +00:00
Brian Curtin
1b9df39620 Fix #8879. Add os.link support to Windows.
Additionally, the st_ino attribute of stat structures was not being filled
in. This was left out of the fix to #10027 and was noticed due to
test_tarfile failing when applying the patch for this issue. An earlier
version of the fix to #10027 included st_ino, but that attribute got lost
in the shuffle of a few review/fix cycles. All tests pass.
2010-11-24 20:24:31 +00:00
Ezio Melotti
f21c7ed39d #10299: Add a table that lists all the built-in functions in functions.rst 2010-11-24 20:18:02 +00:00
Terry Reedy
6d2ab7126e Issue 1859: Doc that textwrap does not break on \n (pending possible behavior patch). Patch by Jeremy Thurgood. 2010-11-23 20:17:24 +00:00
Georg Brandl
57410c12e8 #10511: clarification of what heaps are; suggested by Johannes Hoff. 2010-11-23 08:37:54 +00:00
Ezio Melotti
2baf1a69f4 #9424: add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals, assertNotAlmostEquals, and assert_ 2010-11-22 12:56:58 +00:00
Éric Araujo
28053fb174 Remove unnecessary object base class in docs (#10366).
Also add a note about inheritance from `object` being default.
2010-11-22 03:09:19 +00:00
Alexander Belopolsky
d4bbab278f Issue #10138: Removed 'indefinitely' from the proleptic calendar description. 2010-11-22 03:06:56 +00:00