Commit Graph

15329 Commits

Author SHA1 Message Date
Senthil Kumaran 4e78de89d0 Fix for Issue7904. urlparse.urlsplit to handle schemes in the way defined by RFC3986 2010-02-19 07:32:48 +00:00
Fred Drake cc43b56960 - apply patch from issue 7005
- add corresponding documentation
2010-02-19 05:24:30 +00:00
Michael Foord c2294dd6ba Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues when constructing failure messages. Issue 7956 2010-02-18 21:37:07 +00:00
Michael Foord 225a099fe5 unittest.TestCase uses safe_repr for producing failure messages. Partial fix for issue 7956 2010-02-18 20:30:09 +00:00
Mark Dickinson 456e1652cf Doctest fixes for decimal.py: add an integer-argument doctest for logical_invert; don't use integer literals with a leading zero. 2010-02-18 14:45:33 +00:00
Mark Dickinson 6d8effb1fc Issue #7633: Context method in the decimal module (with the exception
of the 'canonical' and 'is_canonical' methods) now consistently accept
integer arguments wherever a Decimal instance is accepted.  Thanks
Juan José Conti for the patch.
2010-02-18 14:27:02 +00:00
Ezio Melotti 6f9030329c #7941: fix error message 2010-02-16 23:58:49 +00:00
Ezio Melotti e511fc7979 #7930: fix stripid 2010-02-16 23:26:09 +00:00
Mark Dickinson 876473bcc8 Check that 'd' isn't allowed as an exponent specifier in inputs to the float function. 2010-02-12 21:16:38 +00:00
Michael Foord e5e7696458 Adding TextTestResult to unittest.__all__ 2010-02-11 14:12:07 +00:00
R. David Murray 031ae6e904 Improve issue 7835 fix per MAL to handle the case that the
module dictionary has also been cleared.
2010-02-11 01:56:42 +00:00
R. David Murray 7c29f071d5 Issue 5754: tweak shelve doc wording to make it clearer that even when
writeback=True values are written to the backing store when assigned to
the shelf.  Add test to confirm that this happens.  Doc patch and added
test by Robert Lehmann.  I also fixed the cross references to the sync
and close methods.
2010-02-11 01:38:42 +00:00
R. David Murray 63e4fd7eef Issue 7835: Shelve's __del__ method calls its close method, and its
close method refers to an identifier in the global module namespace.
This means that when __del__ is called during interpreter shutdown (if,
for example, the calling program still has a pointer to the shelf),
sometimes that global identifier would wind up being None, causing
mysterious 'ignored' exceptions.  This patch checks for the possible None
value first before using the global, thus avoiding the error messages.
2010-02-10 22:42:04 +00:00
Ezio Melotti 8f6a287029 #7712: add a temp_cwd context manager to test_support and use it in regrtest to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch. 2010-02-10 21:40:33 +00:00
Michael Foord 1c3abf475e Fix for unittest tests, to be merged to py3k 2010-02-10 15:50:58 +00:00
Michael Foord 67dfc77dfd Remove deprecation on assert_. It is used too frequently. 2010-02-10 14:31:30 +00:00
Michael Foord db43b5a1f5 Issue 7893 and Issue 7588 2010-02-10 14:25:12 +00:00
Antoine Pitrou 42fb6ab491 Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
in XML processing instructions and comments.  These raw characters are
allowed by the XML specification, and are necessary when outputting e.g.
PHP code in a processing instruction.  Patch by Neil Muller.
2010-02-09 17:08:05 +00:00
Georg Brandl 11f5c9e001 Convert test failure from output-producing to self.fail(). 2010-02-08 22:48:37 +00:00
Michael Foord fe6349c965 Make assertMultiLineEqual the default for comparing unicode strings. 2010-02-08 22:41:16 +00:00
Georg Brandl 0c4783a33c Fix missing string formatting placeholder. 2010-02-08 22:40:51 +00:00
Georg Brandl e64c442ff7 Fix undefined local. 2010-02-08 22:37:52 +00:00
Georg Brandl 616e8fc5ad Fix missing string formatting argument. 2010-02-08 22:37:20 +00:00
Ezio Melotti cd4f657809 Fix exc_value -> exception in docstring 2010-02-08 21:52:08 +00:00
Vinay Sajip cfc43e9435 logging: gingerly re-enabling skipped tests after improving thread sync code in configurator. 2010-02-08 21:18:15 +00:00
Vinay Sajip 9a164ac800 Issue #7857: Another attempt to keep the buildbots happy. 2010-02-08 16:05:50 +00:00
Vinay Sajip e1ec841086 logging: skipped listening tests because they're not working reliably. 2010-02-08 15:32:08 +00:00
Vinay Sajip 7ed8001862 Removed spurious print statement in test. 2010-02-08 06:50:14 +00:00
Georg Brandl 6eedef60a2 Fix test_fnmatch. 2010-02-08 00:04:54 +00:00
Mark Dickinson 841e7f3ae2 Skip test_strtod entirely when correctly-rounded string->float isn't implemented 2010-02-07 20:31:10 +00:00
Ronald Oussoren dd25e86cf4 Issue 6003: ZipFile.writestr "compression_type" argument 2010-02-07 20:18:02 +00:00
Michael Foord 2bd52dcccb assertRaises as context manager now allows you to access exception as documented 2010-02-07 18:44:12 +00:00
Georg Brandl a4f46e1292 Remove unused imports in test modules. 2010-02-07 17:03:15 +00:00
Georg Brandl dc3694bee0 Rename "exc_value" attribute on assertRaises context manager to "exception". 2010-02-07 17:02:22 +00:00
Antoine Pitrou 4ad752d70f Issue #7870: Remove duplicate test methods. Reported by Georg Brandl. 2010-02-07 16:56:23 +00:00
Mark Dickinson 1224f4afb4 Actually raise on failure, instead of doing nothing. 2010-02-07 13:09:52 +00:00
Vinay Sajip 7ce5c831cc logging: Removed some more 1.5.2 support code. 2010-02-07 13:06:51 +00:00
Mark Dickinson 4dcba97590 Add missing global declarations for 'overflowok'; remove 'overflowrequired', which is no longer needed. 2010-02-07 13:01:56 +00:00
Vinay Sajip 64e8b970f9 Issue #7869: logging: improved format-time diagnostics and removed some 1.5.2 support code. 2010-02-07 12:56:54 +00:00
Georg Brandl b86d3fa43c Remove duplicate test method. 2010-02-07 12:55:12 +00:00
Georg Brandl 308e18b595 Add a minimal test for fnmatchcase(). 2010-02-07 12:34:26 +00:00
Georg Brandl a34f87f981 Fix a redefined test method. 2010-02-07 12:27:06 +00:00
Georg Brandl 41dc63fae5 Fix two redefined test methods. 2010-02-07 12:25:50 +00:00
Georg Brandl b3cda98dd1 Fix wrong usage of "except X, Y:". 2010-02-07 12:19:43 +00:00
Georg Brandl 7ae6018788 Fix another duplicated test method. 2010-02-07 12:16:12 +00:00
Ronald Oussoren ab3f5cbabd A number of APIs in macostools cannot work in 64-bit mode because they
use Carbon APIs that aren't available there.

This patch disables tests for the affected entrypoints in macostools and
mentions this in the documentation.

In theory it is possible to replace the implementation by code that does
work in 64-bit mode, but that would require further updates to the Carbon
wrappers because the modern APIs aren't wrapped properly.
2010-02-07 11:38:28 +00:00
Georg Brandl b0eb4d3eb1 Use "regexp" consistently. 2010-02-07 11:34:15 +00:00
Ronald Oussoren 9341ad2200 Remove call to gestalt('sysu') from platform.py. This gestalt call is
not available on OSX an appearently causes problems for some users.

Fixes issue 7812
2010-02-07 11:29:31 +00:00
Vinay Sajip 657514a690 Issue #7868: logging: added loggerClass attribute to Manager. 2010-02-07 01:37:08 +00:00
Georg Brandl 12cad204a0 Add missing import. 2010-02-06 23:58:25 +00:00