Commit Graph

11545 Commits

Author SHA1 Message Date
Gregory P. Smith 1d6ec653d0 fix test, use bytes not unicode and let the test raise its internal exception
rather than just complaining about stderr not being what we expected masking
the true problem.
2007-09-03 16:48:32 +00:00
Eric Smith 4cb4e4e882 Fix segfault discovered by Ron Adam. Not checking for terminating right bracket in "'{0[}'.format(())". Fixed, and tests added. 2007-09-03 08:40:29 +00:00
Martin v. Löwis f82d9b52fa Patch #1076: Use wide API for registry functions. 2007-09-03 07:43:05 +00:00
Georg Brandl c76473d887 Fix Mac build, patch #1091 by Humberto Diogenes. 2007-09-03 07:27:49 +00:00
Eric Smith 9d4ba3970f Removed used_args param from string.Formatter.get_field. It was left in by mistake from an earlier edit. 2007-09-02 15:33:26 +00:00
Collin Winter 2ac0121305 Run 2to3's fix_has_key over distutils. 2007-09-01 20:37:22 +00:00
Collin Winter 0470689215 Run 2to3's fix_has_key over Lib/plat-os2emx/. 2007-09-01 20:35:04 +00:00
Collin Winter ba21f618a3 Fix refleaks in test_with caused by reusing the same exception instance over and over. 2007-09-01 20:29:04 +00:00
Collin Winter c59dacdbd8 Fix a poorly-translated raise statement in contextlib. 2007-09-01 20:27:58 +00:00
Collin Winter 1966f1c98f Fix refleaks exposed by test_raise. 2007-09-01 20:26:44 +00:00
Kurt B. Kaiser 1963ad3126 Saving a file containing unicode failed. 2007-09-01 19:47:39 +00:00
Eric Smith 37f10386f1 Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects. 2007-09-01 10:56:01 +00:00
Kurt B. Kaiser 804252b3d9 Eliminate latin-1 encoding 2007-08-31 21:42:36 +00:00
Kurt B. Kaiser d953f6e2c7 Point IDLE menu Help / Python Docs at Python 3000 version 2007-08-31 21:40:34 +00:00
Kurt B. Kaiser 610cee3e86 Convert IDLE's CREDITS file to unicode. 2007-08-31 18:37:07 +00:00
Guido van Rossum 27b02407b7 Updated tracker link. 2007-08-31 17:25:37 +00:00
Guido van Rossum ba25c89919 Got test_plistlib working. Don't ask how. 2007-08-31 14:18:20 +00:00
Guido van Rossum 261f9df18d Fix fall-out of str.decode removal. 2007-08-31 14:07:27 +00:00
Thomas Heller 674e9389e9 Add a workaround for a strange bug on win64, when _ctypes is compiled
with the SDK compiler.  This should fix the failing
Lib\ctypes\test\test_as_parameter.py test.
2007-08-31 13:06:44 +00:00
Barry Warsaw c5a6a3078b Restore test_email for a1. It passes completely. 2007-08-31 11:19:21 +00:00
Barry Warsaw bef9d21d14 Make test_email.py completely pass. This is cheating though because the two
line splitting examples don't split things the way they used to -- or should.
In these cases, change the test case and add an XXX.

The final failure was in Charset.body_encode() with euc-jp charset.  These
return the original string unencoded, which isn't right.  XXX and comment this
out for now; we'll fix it after a1.
2007-08-31 10:55:37 +00:00
Georg Brandl 7f13e6b3e2 string.maketrans() now produces translation tables for bytes.translate() -- wrong module?
Fix all remaining instances that did bad things with the new str.translate().
2007-08-31 10:37:15 +00:00
Thomas Heller 680d7befc0 Fix a buggy test. str8 objects contained NUL-terminated strings,
bytes objects don't.
2007-08-31 09:54:51 +00:00
Martin v. Löwis 3dc33d1845 Revert 57722. Move error dialog APIs to msvcrt instead,
add -n option to regrtest, and use it on the buildbot.
2007-08-31 07:58:36 +00:00
Georg Brandl 39cf04b7bb Regenerate Lib/symbol.py. 2007-08-31 07:58:27 +00:00
Thomas Heller 4afcfb4f00 Fix test_startfile and remove duplicated test. 2007-08-31 06:45:04 +00:00
Guido van Rossum 671117a43a Force test_mailbox and test_old_mailbox into submission.
(a) Several tests in test_mailbox were failing because we were writing
    text to a file opened in binary mode.  Switching to text fixed these.
(b) test_unix_mbox() in each test does a wacko comparison which apparently
    no longer works due to a different way the message gets parsed.
    I disabled this, I don't think the test was testing what it thought
    it was testing.
2007-08-31 04:25:05 +00:00
Kurt B. Kaiser 7cec252b9d 1. Don't encode input strings to bytes.
2. Re-enable stderr redirection.
2007-08-31 04:15:13 +00:00
Barry Warsaw 7aa02e6590 More email package fixes.
Fix a couple of tests since .body_encode()'s arguments have changed.  Also, I
think body_encode() should take a string not a byte array for consistency with
the rest of the api (but I'm not positive about this).  In
quoprimime.body_encode(), body_check() must be passed an int.

Current status: 7F (no errors!)
2007-08-31 03:26:19 +00:00
Barry Warsaw 8b2af27dae More email package fixes.
MIMEApplication() requires a bytes object for its _data, so fix the tests.

We no longer need utils._identity() or utils._bdecode().  The former isn't
used anywhere AFAICT (where's "make test's" lint? <wink>) and the latter is a
kludge that is eliminated by base64.b64encode().

Current status: 5F/5E
2007-08-31 03:04:26 +00:00
Barry Warsaw 00b34228bb More email package fixes.
This repairs the linear whitespace insertion between RFC 2047 encoded words
without leaving bogus trailing spaces at the end lines that end in encoded
words.

Current status: 7F/9E
2007-08-31 02:35:00 +00:00
Eric Smith 3bcc42ad0f Changed signature of string.Formatter.get_field, per suggestion by
Ron Adam.

Added test case for using all parameters in string.Formatter.
2007-08-31 02:26:31 +00:00
Eric Smith 11fe3e05ff Fixed test name. 2007-08-31 01:33:06 +00:00
Eric Smith 81936699c8 Added test cases for string.Formatter subclassing.
Made format_spec parameter to builtin format optional, defaults to
empty string.  Added test cases.
2007-08-31 01:14:01 +00:00
Collin Winter 812567d3f8 Cut test_raise down to size. 2007-08-31 00:47:26 +00:00
Thomas Wouters 74e68c751f Fix test_smtplib by munging asynchat some more. 2007-08-31 00:20:14 +00:00
Collin Winter 828f04ac3f Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 2007-08-31 00:04:24 +00:00
Thomas Wouters d2cf20eea2 Remove the simple slicing API. All slicing is now done with slice objects. 2007-08-30 22:57:53 +00:00
Thomas Wouters 582b586617 Merged revisions 57772-57777 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57776 | thomas.wouters | 2007-08-31 00:35:31 +0200 (Fri, 31 Aug 2007) | 4 lines


  One more fix to consider missing SSL support.
........
2007-08-30 22:39:17 +00:00
Eric Smith 185e30cdf3 Added format tests.
Fixed bug in alignment of negative numbers.
Whitespace normalization.
2007-08-30 22:23:08 +00:00
Kurt B. Kaiser bc3b345f82 IDLE's py3k NEWS 2007-08-30 22:16:49 +00:00
Thomas Wouters 47b49bf6dc Merged revisions 57620-57771 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57771 | thomas.wouters | 2007-08-30 23:54:39 +0200 (Thu, 30 Aug 2007) | 5 lines


  Don't lie in __all__ attributes when SSL is not available: only add the SSL
  classes when they are actually created.

........
  r57620 | walter.doerwald | 2007-08-28 18:38:26 +0200 (Tue, 28 Aug 2007) | 5 lines

  Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for
  HTMLCalender.formatyearpage() (there's no themonth parameter).

  This fixes issue1046.
........
  r57622 | georg.brandl | 2007-08-28 20:54:44 +0200 (Tue, 28 Aug 2007) | 2 lines

  Add a crasher for the thread-unsafety of file objects.
........
  r57626 | skip.montanaro | 2007-08-29 01:22:52 +0200 (Wed, 29 Aug 2007) | 1 line

  fixes 813986
........
  r57628 | walter.doerwald | 2007-08-29 01:35:33 +0200 (Wed, 29 Aug 2007) | 2 lines

  Fix test output.
........
  r57631 | skip.montanaro | 2007-08-29 03:24:11 +0200 (Wed, 29 Aug 2007) | 2 lines

  Install pygettext (once the scriptsinstall target is working again).
........
  r57633 | skip.montanaro | 2007-08-29 03:33:45 +0200 (Wed, 29 Aug 2007) | 2 lines

  Recent items.
........
  r57650 | neal.norwitz | 2007-08-29 08:15:33 +0200 (Wed, 29 Aug 2007) | 1 line

  Add Bill as a developer
........
  r57651 | facundo.batista | 2007-08-29 12:28:28 +0200 (Wed, 29 Aug 2007) | 5 lines


  Ignore test failures caused by 'resource temporarily unavailable'
  exceptions raised during FailingServerTestCase tests.
  [GSoC - Alan McIntyre]
........
  r57680 | bill.janssen | 2007-08-30 00:35:05 +0200 (Thu, 30 Aug 2007) | 17 lines

  This contains a number of things:

  1) Improve the documentation of the SSL module, with a fuller
     explanation of certificate usage, another reference, proper
     formatting of this and that.

  2) Fix Windows bug in ssl.py, and general bug in sslsocket.close().
     Remove some unused code from ssl.py.  Allow accept() to be called on
     sslsocket sockets.

  3) Use try-except-else in import of ssl in socket.py.  Deprecate use of
     socket.ssl().

  4) Remove use of socket.ssl() in every library module, except for
     test_socket_ssl.py and test_ssl.py.
........
  r57714 | georg.brandl | 2007-08-30 12:09:42 +0200 (Thu, 30 Aug 2007) | 2 lines

  Stronger urge to convert filenames to str before using them as argument to ZipFile.write().
........
  r57716 | georg.brandl | 2007-08-30 12:38:56 +0200 (Thu, 30 Aug 2007) | 2 lines

  Patch #1680959: add test suite for pipes module.
........
  r57717 | georg.brandl | 2007-08-30 14:32:23 +0200 (Thu, 30 Aug 2007) | 3 lines

  * Skip test_pipes on non-POSIX.
  * Don't raise TestSkipped within a test function.
........
  r57723 | mark.summerfield | 2007-08-30 17:03:03 +0200 (Thu, 30 Aug 2007) | 3 lines

  Added more cross-references.
........
  r57726 | walter.doerwald | 2007-08-30 17:30:09 +0200 (Thu, 30 Aug 2007) | 2 lines

  Rewrap line.
........
  r57727 | walter.doerwald | 2007-08-30 17:34:55 +0200 (Thu, 30 Aug 2007) | 2 lines

  Set startinpos before calling the error handler.
........
  r57730 | bill.janssen | 2007-08-30 19:07:28 +0200 (Thu, 30 Aug 2007) | 3 lines

  Added docstrings to methods and functions.
........
  r57743 | bill.janssen | 2007-08-30 20:08:06 +0200 (Thu, 30 Aug 2007) | 1 line

  added note on new ssl module and deprecation of socket.ssl
........
  r57747 | martin.v.loewis | 2007-08-30 20:14:01 +0200 (Thu, 30 Aug 2007) | 1 line

  Fix popen usage.
........
  r57748 | martin.v.loewis | 2007-08-30 20:15:22 +0200 (Thu, 30 Aug 2007) | 1 line

  Fix typo.
........
  r57750 | martin.v.loewis | 2007-08-30 20:25:47 +0200 (Thu, 30 Aug 2007) | 1 line

  Bug #1746880: Correctly install DLLs into system32 folder on Win64.
........
  r57760 | martin.v.loewis | 2007-08-30 21:04:09 +0200 (Thu, 30 Aug 2007) | 1 line

  Bug #1709599: Run test_1565150 only if the file system is NTFS.
........
  r57762 | martin.v.loewis | 2007-08-30 22:10:57 +0200 (Thu, 30 Aug 2007) | 2 lines

  Bump autoconf minimum version to 2.61.
........
  r57764 | lars.gustaebel | 2007-08-30 22:24:31 +0200 (Thu, 30 Aug 2007) | 2 lines

  Warn about possible risks when extracting untrusted archives.
........
  r57769 | thomas.wouters | 2007-08-30 23:01:17 +0200 (Thu, 30 Aug 2007) | 7 lines


  Somewhat-preliminary slice-object and extended slicing support for ctypes.
  The exact behaviour of omitted and negative indices for the Pointer type may
  need a closer look (especially as it's subtly different from simple slices)
  but there's time yet before 2.6, and not enough before 3.0a1 :-)
........
2007-08-30 22:15:33 +00:00
Kurt B. Kaiser 623d372147 Don't ascii encode eol_convention. Was causing file write to fail. 2007-08-30 21:00:19 +00:00
Martin v. Löwis 234a34a564 Explicitly use UTF-8 as the encoding for the normalization file. 2007-08-30 20:58:02 +00:00
Kurt B. Kaiser 5495957b6c Bump IDLE version. 2007-08-30 20:51:49 +00:00
Barry Warsaw 8c571047cc More email package fixes. 2007-08-30 19:17:18 +00:00
Collin Winter fd51975886 Fix a typo in the distutils cleanup. 2007-08-30 18:46:25 +00:00
Collin Winter 4902e69e40 More raise statement normalization. 2007-08-30 18:18:27 +00:00
Collin Winter 6cd2a2036d Kill more lingering string exceptions in Lib/plat-mac/. 2007-08-30 18:11:48 +00:00
Collin Winter b9678e71f3 1/0 -> True/False cleanup. 2007-08-30 18:11:17 +00:00