]> granicus.if.org Git - python/log
python
15 years ago#7712: add a temp_cwd context manager to test_support and use it in regrtest to run...
Ezio Melotti [Wed, 10 Feb 2010 21:40:33 +0000 (21:40 +0000)]
#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.

15 years agoFix for unittest tests, to be merged to py3k
Michael Foord [Wed, 10 Feb 2010 15:50:58 +0000 (15:50 +0000)]
Fix for unittest tests, to be merged to py3k

15 years agoRemove deprecation on assert_. It is used too frequently.
Michael Foord [Wed, 10 Feb 2010 14:31:30 +0000 (14:31 +0000)]
Remove deprecation on assert_. It is used too frequently.

15 years agoIssue 7893 and Issue 7588
Michael Foord [Wed, 10 Feb 2010 14:25:12 +0000 (14:25 +0000)]
Issue 7893 and Issue 7588

15 years agoIssue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
Antoine Pitrou [Tue, 9 Feb 2010 17:08:05 +0000 (17:08 +0000)]
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.

15 years agoDoc fix for unittest.
Michael Foord [Mon, 8 Feb 2010 23:15:22 +0000 (23:15 +0000)]
Doc fix for unittest.

15 years agoConvert test failure from output-producing to self.fail().
Georg Brandl [Mon, 8 Feb 2010 22:48:37 +0000 (22:48 +0000)]
Convert test failure from output-producing to self.fail().

15 years agoMake assertMultiLineEqual the default for comparing unicode strings.
Michael Foord [Mon, 8 Feb 2010 22:41:16 +0000 (22:41 +0000)]
Make assertMultiLineEqual the default for comparing unicode strings.

15 years agoFix missing string formatting placeholder.
Georg Brandl [Mon, 8 Feb 2010 22:40:51 +0000 (22:40 +0000)]
Fix missing string formatting placeholder.

15 years agoFix undefined local.
Georg Brandl [Mon, 8 Feb 2010 22:37:52 +0000 (22:37 +0000)]
Fix undefined local.

15 years agoFix missing string formatting argument.
Georg Brandl [Mon, 8 Feb 2010 22:37:20 +0000 (22:37 +0000)]
Fix missing string formatting argument.

15 years agoFix typo
Ezio Melotti [Mon, 8 Feb 2010 22:22:41 +0000 (22:22 +0000)]
Fix typo

15 years agoFix exc_value -> exception in docstring
Ezio Melotti [Mon, 8 Feb 2010 21:52:08 +0000 (21:52 +0000)]
Fix exc_value -> exception in docstring

15 years agologging: gingerly re-enabling skipped tests after improving thread sync code in confi...
Vinay Sajip [Mon, 8 Feb 2010 21:18:15 +0000 (21:18 +0000)]
logging: gingerly re-enabling skipped tests after improving thread sync code in configurator.

15 years agoClarify and correct description for ccbench and iobench.
Antoine Pitrou [Mon, 8 Feb 2010 20:25:47 +0000 (20:25 +0000)]
Clarify and correct description for ccbench and iobench.

15 years agoIssue #7857: Another attempt to keep the buildbots happy.
Vinay Sajip [Mon, 8 Feb 2010 16:05:50 +0000 (16:05 +0000)]
Issue #7857: Another attempt to keep the buildbots happy.

15 years agologging: skipped listening tests because they're not working reliably.
Vinay Sajip [Mon, 8 Feb 2010 15:32:08 +0000 (15:32 +0000)]
logging: skipped listening tests because they're not working reliably.

15 years agoAdd two items; move a subsection
Andrew M. Kuchling [Mon, 8 Feb 2010 13:22:24 +0000 (13:22 +0000)]
Add two items; move a subsection

15 years agoRemoved spurious print statement in test.
Vinay Sajip [Mon, 8 Feb 2010 06:50:14 +0000 (06:50 +0000)]
Removed spurious print statement in test.

15 years agoMove distutils into its own subsection; add various items
Andrew M. Kuchling [Mon, 8 Feb 2010 01:35:35 +0000 (01:35 +0000)]
Move distutils into its own subsection; add various items

15 years agoFix test_fnmatch.
Georg Brandl [Mon, 8 Feb 2010 00:04:54 +0000 (00:04 +0000)]
Fix test_fnmatch.

15 years agoSkip test_strtod entirely when correctly-rounded string->float isn't implemented
Mark Dickinson [Sun, 7 Feb 2010 20:31:10 +0000 (20:31 +0000)]
Skip test_strtod entirely when correctly-rounded string->float isn't implemented

15 years agoIssue 6003: ZipFile.writestr "compression_type" argument
Ronald Oussoren [Sun, 7 Feb 2010 20:18:02 +0000 (20:18 +0000)]
Issue 6003: ZipFile.writestr "compression_type" argument

15 years agoassertRaises as context manager now allows you to access exception as documented
Michael Foord [Sun, 7 Feb 2010 18:44:12 +0000 (18:44 +0000)]
assertRaises as context manager now allows you to access exception as documented

15 years agoRemove unused imports in test modules.
Georg Brandl [Sun, 7 Feb 2010 17:03:15 +0000 (17:03 +0000)]
Remove unused imports in test modules.

15 years agoRename "exc_value" attribute on assertRaises context manager to "exception".
Georg Brandl [Sun, 7 Feb 2010 17:02:22 +0000 (17:02 +0000)]
Rename "exc_value" attribute on assertRaises context manager to "exception".

15 years agoIssue #7870: Remove duplicate test methods. Reported by Georg Brandl.
Antoine Pitrou [Sun, 7 Feb 2010 16:56:23 +0000 (16:56 +0000)]
Issue #7870: Remove duplicate test methods.  Reported by Georg Brandl.

15 years agoActually raise on failure, instead of doing nothing.
Mark Dickinson [Sun, 7 Feb 2010 13:09:52 +0000 (13:09 +0000)]
Actually raise on failure, instead of doing nothing.

15 years agologging: Removed some more 1.5.2 support code.
Vinay Sajip [Sun, 7 Feb 2010 13:06:51 +0000 (13:06 +0000)]
logging: Removed some more 1.5.2 support code.

15 years agoAdd missing global declarations for 'overflowok'; remove 'overflowrequired', which...
Mark Dickinson [Sun, 7 Feb 2010 13:01:56 +0000 (13:01 +0000)]
Add missing global declarations for 'overflowok'; remove 'overflowrequired', which is no longer needed.

15 years agoIssue #7869: logging: improved format-time diagnostics and removed some 1.5.2 support...
Vinay Sajip [Sun, 7 Feb 2010 12:56:54 +0000 (12:56 +0000)]
Issue #7869: logging: improved format-time diagnostics and removed some 1.5.2 support code.

15 years agoRemove duplicate test method.
Georg Brandl [Sun, 7 Feb 2010 12:55:12 +0000 (12:55 +0000)]
Remove duplicate test method.

15 years agoAdd a minimal test for fnmatchcase().
Georg Brandl [Sun, 7 Feb 2010 12:34:26 +0000 (12:34 +0000)]
Add a minimal test for fnmatchcase().

15 years agoFix a redefined test method.
Georg Brandl [Sun, 7 Feb 2010 12:27:06 +0000 (12:27 +0000)]
Fix a redefined test method.

15 years agoFix two redefined test methods.
Georg Brandl [Sun, 7 Feb 2010 12:25:50 +0000 (12:25 +0000)]
Fix two redefined test methods.

15 years agoFix wrong usage of "except X, Y:".
Georg Brandl [Sun, 7 Feb 2010 12:19:43 +0000 (12:19 +0000)]
Fix wrong usage of "except X, Y:".

15 years agoFix another duplicated test method.
Georg Brandl [Sun, 7 Feb 2010 12:16:12 +0000 (12:16 +0000)]
Fix another duplicated test method.

15 years agoA number of APIs in macostools cannot work in 64-bit mode because they
Ronald Oussoren [Sun, 7 Feb 2010 11:38:28 +0000 (11:38 +0000)]
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.

15 years agoUse "regexp" consistently.
Georg Brandl [Sun, 7 Feb 2010 11:34:15 +0000 (11:34 +0000)]
Use "regexp" consistently.

15 years agoRemove call to gestalt('sysu') from platform.py. This gestalt call is
Ronald Oussoren [Sun, 7 Feb 2010 11:29:31 +0000 (11:29 +0000)]
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

15 years agoIssue #7868: logging: added loggerClass attribute to Manager.
Vinay Sajip [Sun, 7 Feb 2010 01:37:08 +0000 (01:37 +0000)]
Issue #7868: logging: added loggerClass attribute to Manager.

15 years agoAdd missing import.
Georg Brandl [Sat, 6 Feb 2010 23:58:25 +0000 (23:58 +0000)]
Add missing import.

15 years agoFix some name errors in Mac modules.
Georg Brandl [Sat, 6 Feb 2010 23:54:43 +0000 (23:54 +0000)]
Fix some name errors in Mac modules.

15 years agoAdd missing import when running these tests standalone.
Georg Brandl [Sat, 6 Feb 2010 23:54:04 +0000 (23:54 +0000)]
Add missing import when running these tests standalone.

15 years agoAdd missing import when running these tests standalone.
Georg Brandl [Sat, 6 Feb 2010 23:53:52 +0000 (23:53 +0000)]
Add missing import when running these tests standalone.

15 years agoFix more unbound locals in code paths that do not seem to be used.
Georg Brandl [Sat, 6 Feb 2010 23:34:10 +0000 (23:34 +0000)]
Fix more unbound locals in code paths that do not seem to be used.

15 years agoFix import/access for some identifiers. _TestSharedCTypes does not seem to be executed?
Georg Brandl [Sat, 6 Feb 2010 23:33:33 +0000 (23:33 +0000)]
Fix import/access for some identifiers.  _TestSharedCTypes does not seem to be executed?

15 years agoWe heard you like test failures so we put unbound locals in your test so that you...
Georg Brandl [Sat, 6 Feb 2010 23:23:45 +0000 (23:23 +0000)]
We heard you like test failures so we put unbound locals in your test so that you can fail while you fail.

15 years agoFix various missing import/unbound name errors.
Georg Brandl [Sat, 6 Feb 2010 23:18:00 +0000 (23:18 +0000)]
Fix various missing import/unbound name errors.

15 years agoRemove duplicate test method.
Georg Brandl [Sat, 6 Feb 2010 23:12:19 +0000 (23:12 +0000)]
Remove duplicate test method.

15 years agoAdd missing import.
Georg Brandl [Sat, 6 Feb 2010 23:12:12 +0000 (23:12 +0000)]
Add missing import.

15 years agotestCopysign was defined twice in test_math; combine the definitions
Mark Dickinson [Sat, 6 Feb 2010 23:11:25 +0000 (23:11 +0000)]
testCopysign was defined twice in test_math;  combine the definitions

15 years agoFix a few UnboundLocalErrors in test_long.
Georg Brandl [Sat, 6 Feb 2010 23:08:00 +0000 (23:08 +0000)]
Fix a few UnboundLocalErrors in test_long.

15 years agoAdd missing imports.
Georg Brandl [Sat, 6 Feb 2010 23:06:24 +0000 (23:06 +0000)]
Add missing imports.

15 years agoAdd a missing import.
Georg Brandl [Sat, 6 Feb 2010 23:02:29 +0000 (23:02 +0000)]
Add a missing import.

15 years agoNo need to assign the results of expressions used only for side effects.
Georg Brandl [Sat, 6 Feb 2010 22:59:15 +0000 (22:59 +0000)]
No need to assign the results of expressions used only for side effects.

15 years agoRemove unused import.
Georg Brandl [Sat, 6 Feb 2010 22:49:47 +0000 (22:49 +0000)]
Remove unused import.

15 years agoFix duplicate import.
Georg Brandl [Sat, 6 Feb 2010 22:44:17 +0000 (22:44 +0000)]
Fix duplicate import.

15 years agomake waiting for the server to start robust
Benjamin Peterson [Sat, 6 Feb 2010 22:08:15 +0000 (22:08 +0000)]
make waiting for the server to start robust

15 years agoRemove unused imports from test_logging.
Georg Brandl [Sat, 6 Feb 2010 21:54:40 +0000 (21:54 +0000)]
Remove unused imports from test_logging.

15 years agoIssue #7857: Gave server thread more time to get ready, and re-enabled a skipped...
Vinay Sajip [Sat, 6 Feb 2010 20:28:36 +0000 (20:28 +0000)]
Issue #7857: Gave server thread more time to get ready, and re-enabled a skipped test.

15 years agocheck type_getattro for correctness in a descriptor corner case
Benjamin Peterson [Sat, 6 Feb 2010 20:14:10 +0000 (20:14 +0000)]
check type_getattro for correctness in a descriptor corner case

15 years agoIssue #7857: Tentatively re-enabling one test to see effect on buildbots.
Vinay Sajip [Sat, 6 Feb 2010 20:00:43 +0000 (20:00 +0000)]
Issue #7857: Tentatively re-enabling one test to see effect on buildbots.

15 years agoremove pointless error checking
Benjamin Peterson [Sat, 6 Feb 2010 19:40:18 +0000 (19:40 +0000)]
remove pointless error checking

15 years ago#5341: fix "builtin" where used as an adjective ("built-in" is correct).
Georg Brandl [Sat, 6 Feb 2010 18:44:44 +0000 (18:44 +0000)]
#5341: fix "builtin" where used as an adjective ("built-in" is correct).

15 years agopost release updates
Benjamin Peterson [Sat, 6 Feb 2010 18:26:27 +0000 (18:26 +0000)]
post release updates

15 years agotag 2.7 alpha 3
Benjamin Peterson [Sat, 6 Feb 2010 16:41:20 +0000 (16:41 +0000)]
tag 2.7 alpha 3

15 years agobump version to 2.7a3 v2.7a3
Benjamin Peterson [Sat, 6 Feb 2010 16:37:32 +0000 (16:37 +0000)]
bump version to 2.7a3

15 years agoReview sysconfig docs.
Georg Brandl [Sat, 6 Feb 2010 10:23:16 +0000 (10:23 +0000)]
Review sysconfig docs.

15 years ago#7864: make deprecation notices a bit clearer.
Georg Brandl [Sat, 6 Feb 2010 10:08:21 +0000 (10:08 +0000)]
#7864: make deprecation notices a bit clearer.

15 years agoissue #7728: test_timeout was using a hardcoded port, which was
R. David Murray [Sat, 6 Feb 2010 04:27:21 +0000 (04:27 +0000)]
issue #7728: test_timeout was using a hardcoded port, which was
causing buildbot failures.  Changed to use test_support.bind_port.
Patch by Florent Xicluna.

15 years agounittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.
Michael Foord [Sat, 6 Feb 2010 00:22:26 +0000 (00:22 +0000)]
unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.

15 years agotest_logging: minor tweaks to timeouts, listening tests marked as skipped.
Vinay Sajip [Fri, 5 Feb 2010 23:43:11 +0000 (23:43 +0000)]
test_logging: minor tweaks to timeouts, listening tests marked as skipped.

15 years agoMinor doc change.
Michael Foord [Fri, 5 Feb 2010 23:28:12 +0000 (23:28 +0000)]
Minor doc change.

15 years agoCorrection to docstring correction.
Michael Foord [Fri, 5 Feb 2010 23:22:37 +0000 (23:22 +0000)]
Correction to docstring correction.

15 years agoImproving docstrings in unittest.TestCase
Michael Foord [Fri, 5 Feb 2010 22:55:09 +0000 (22:55 +0000)]
Improving docstrings in unittest.TestCase

15 years agoAdding versionadded to test skipping section of unittest documentation.
Michael Foord [Fri, 5 Feb 2010 21:45:12 +0000 (21:45 +0000)]
Adding versionadded to test skipping section of unittest documentation.

15 years agoExample of using assertRaises as a context manager in the unittest documentation.
Michael Foord [Fri, 5 Feb 2010 21:07:38 +0000 (21:07 +0000)]
Example of using assertRaises as a context manager in the unittest documentation.

15 years agoCloses issue 7030.
Michael Foord [Fri, 5 Feb 2010 20:52:14 +0000 (20:52 +0000)]
Closes issue 7030.

15 years agoResolve bug 7847 by including documentation for -J, -U, and -X under "Options
Barry Warsaw [Fri, 5 Feb 2010 18:45:25 +0000 (18:45 +0000)]
Resolve bug 7847 by including documentation for -J, -U, and -X under "Options
you shouldn't use".

15 years agoIssue #5677: Explicitly forbid write operations on read-only file objects,
Antoine Pitrou [Fri, 5 Feb 2010 17:05:54 +0000 (17:05 +0000)]
Issue #5677: Explicitly forbid write operations on read-only file objects,
and read operations on write-only file objects.  On Windows, the system C
library would return a bogus result; on Solaris, it was possible to crash
the interpreter.  Patch by Stefan Krah.

15 years agoIssue #7857: test_logging: listener tests disabled for now.
Vinay Sajip [Fri, 5 Feb 2010 15:40:20 +0000 (15:40 +0000)]
Issue #7857: test_logging: listener tests disabled for now.

15 years agoIssue #7857: test_logging: listener test now uses find_unused_port().
Vinay Sajip [Fri, 5 Feb 2010 14:52:05 +0000 (14:52 +0000)]
Issue #7857: test_logging: listener test now uses find_unused_port().

15 years agonormalize exceptions passed to the __exit__ method #7853
Benjamin Peterson [Fri, 5 Feb 2010 02:12:14 +0000 (02:12 +0000)]
normalize exceptions passed to the __exit__ method #7853

In Python 2.x, exceptions in finally blocks are not normalized.  Since with
statements are implemented using finally blocks, ceval.c had to be tweaked to
distinguish between with finally blocks and normal ones.

A test for the finalization of generators containing with statements was also
added.

15 years agoadd a test for #7853; the exception must be normalized for with
Benjamin Peterson [Fri, 5 Feb 2010 01:53:27 +0000 (01:53 +0000)]
add a test for #7853; the exception must be normalized for with

15 years agoAdded unit test for cfg:// resolution.
Vinay Sajip [Thu, 4 Feb 2010 21:40:56 +0000 (21:40 +0000)]
Added unit test for cfg:// resolution.

15 years agoIssue #7851: logging: clarification on logging configuration files.
Vinay Sajip [Thu, 4 Feb 2010 20:23:45 +0000 (20:23 +0000)]
Issue #7851: logging: clarification on logging configuration files.

15 years agoIssue #4772: Raise a ValueError when an unknown Bluetooth protocol is
Antoine Pitrou [Thu, 4 Feb 2010 20:20:18 +0000 (20:20 +0000)]
Issue #4772: Raise a ValueError when an unknown Bluetooth protocol is
specified, rather than fall through to AF_PACKET (in the `socket` module).
Also, raise ValueError rather than TypeError when an unknown TIPC address
type is specified.  Patch by Brian Curtin.

15 years agoRemoved spurious print statement.
Vinay Sajip [Thu, 4 Feb 2010 20:18:28 +0000 (20:18 +0000)]
Removed spurious print statement.

15 years agoUse correct assert* methods in the examples.
Ezio Melotti [Thu, 4 Feb 2010 20:06:38 +0000 (20:06 +0000)]
Use correct assert* methods in the examples.

15 years agoLogging: Implemented PEP 391.
Vinay Sajip [Thu, 4 Feb 2010 18:48:53 +0000 (18:48 +0000)]
Logging: Implemented PEP 391.

15 years agoAdd Chris Rebert to ACKS for issue 6760 Popen doc improvements.
R. David Murray [Thu, 4 Feb 2010 16:33:31 +0000 (16:33 +0000)]
Add Chris Rebert to ACKS for issue 6760 Popen doc improvements.

15 years agoIssue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert
Nick Coghlan [Thu, 4 Feb 2010 12:43:58 +0000 (12:43 +0000)]
Issue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert

15 years agoFix a typo in a docstring introduced in r77956.
Brett Cannon [Wed, 3 Feb 2010 22:13:44 +0000 (22:13 +0000)]
Fix a typo in a docstring introduced in r77956.

15 years agoUpdate a docstring to suggest using importlib.import_module instead of calling __impo...
Brett Cannon [Wed, 3 Feb 2010 22:11:54 +0000 (22:11 +0000)]
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.

15 years agoFix test_inspect.py data to match recent change to inspect_fodder.py (r77942).
Mark Dickinson [Wed, 3 Feb 2010 16:50:14 +0000 (16:50 +0000)]
Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942).

15 years agoleaving global attributes for backward compat
Tarek Ziadé [Wed, 3 Feb 2010 15:38:12 +0000 (15:38 +0000)]
leaving global attributes for backward compat

15 years agoCorrected list of attributes exposed by sys.getwindowsversion.
Eric Smith [Wed, 3 Feb 2010 14:17:50 +0000 (14:17 +0000)]
Corrected list of attributes exposed by sys.getwindowsversion.

15 years agoExplicitly mention the default value for formatdate's usegmt parameter.
R. David Murray [Wed, 3 Feb 2010 13:36:23 +0000 (13:36 +0000)]
Explicitly mention the default value for formatdate's usegmt parameter.

15 years ago#7092: Silence more py3k warnings. Patch by Florent Xicluna.
Ezio Melotti [Wed, 3 Feb 2010 05:37:26 +0000 (05:37 +0000)]
#7092: Silence more py3k warnings. Patch by Florent Xicluna.