Commit graph

17802 commits

Author SHA1 Message Date
Victor Stinner
16004ace5b Use os.fsencode() to support surrogates 2010-09-29 16:59:18 +00:00
Antoine Pitrou
a5785b1524 Fix NNTP when there's a ".netrc" file 2010-09-29 16:19:50 +00:00
Antoine Pitrou
2620d81b7f Disable the usenetrc option when testing nntplib 2010-09-29 16:08:29 +00:00
Antoine Pitrou
69ab95105f Issue #9360: Cleanup and improvements to the nntplib module. The API
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00
Brian Curtin
926f0da582 Fix #9978. WINFUNCTYPE is from ctypes, not from ctypes.wintypes.
r85073 changed the importing in wintypes to not use *, so the previous
usage here became even more incorrect.
2010-09-29 14:51:42 +00:00
Antoine Pitrou
c3ed2e7f83 Issue #9962: GzipFile now has the peek() method. 2010-09-29 10:49:46 +00:00
Victor Stinner
6e4dc80201 Merged revisions 85090 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85090 | victor.stinner | 2010-09-29 03:30:45 +0200 (mer., 29 sept. 2010) | 4 lines

  linecache.updatecache(): don't the lines into the cache on IOError

  Use the same behaviour than Python 2.7.
........
2010-09-29 01:31:23 +00:00
Victor Stinner
41a64a53a3 linecache.updatecache(): don't the lines into the cache on IOError
Use the same behaviour than Python 2.7.
2010-09-29 01:30:45 +00:00
Victor Stinner
35c52240dd Merged revisions 85088 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85088 | victor.stinner | 2010-09-29 03:24:59 +0200 (mer., 29 sept. 2010) | 4 lines

  linecache.updatecache() returns an empty list on error

  lines variable was not set on IOError
........
2010-09-29 01:26:06 +00:00
Victor Stinner
78f43a73cb linecache.updatecache() returns an empty list on error
lines variable was not set on IOError
2010-09-29 01:24:59 +00:00
R. David Murray
d68d4e8e42 Have test_sqlite print version info when run in verbose mode. 2010-09-29 01:22:20 +00:00
R. David Murray
11cabcf73d #7110: have regrtest print test failures and tracebacks to stderr not stdout.
Patch by Sandro Tosi.
2010-09-29 01:08:05 +00:00
Hirokazu Yamamoto
cc868d430b Issue #3612: Added new types to ctypes.wintypes. (CHAR and pointers) 2010-09-28 21:08:38 +00:00
Vinay Sajip
805ddaa3da Issue #9947: logging: backported locking fix from py3k. 2010-09-27 21:51:36 +00:00
Vinay Sajip
3ab905f17b Issue #9945: logging: backported locking fixes from py3k. 2010-09-27 21:46:14 +00:00
Antoine Pitrou
08ae02f11e Merged revisions 85032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85032 | antoine.pitrou | 2010-09-27 19:52:25 +0200 (lun., 27 sept. 2010) | 6 lines

  Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal is
  received.  Now sendall() properly calls signal handlers if necessary,
  and retries sending if these returned successfully, including on sockets
  with a timeout.
........
2010-09-27 18:14:43 +00:00
Brian Curtin
1771b54bed Implement #8521. Added named argument handling to winreg's CreateKeyEx,
DeleteKeyEx, and OpenKeyEx.

Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Antoine Pitrou
6d7df63837 Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal is
received.  Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.
2010-09-27 17:52:25 +00:00
Alexander Belopolsky
0ae33611fa Issue 9941: Minor code cleanup before implementing the context manager feature:
- Eliminated code repetition between run and runctx;
  - Removed redundant calls to dict.key;
  - Removed unused "blabbed" attribute;
  - Simplified the loop in  write_results_file().
2010-09-27 15:49:20 +00:00
Senthil Kumaran
603ca41e27 Merged revisions 85025 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85025 | senthil.kumaran | 2010-09-27 06:56:03 +0530 (Mon, 27 Sep 2010) | 6 lines

  Fix Issue1595365 - Adding the req.headers after the un-redirect headers have
  been added. This helps in accidental overwritting of User-Agent header to
  default value. To preserve the old behavior, only headers not in unredirected
  headers will be updated.
........
2010-09-27 01:28:10 +00:00
Senthil Kumaran
42ef4b1f4c Fix Issue1595365 - Adding the req.headers after the un-redirect headers have
been added. This helps in accidental overwritting of User-Agent header to
default value. To preserve the old behavior, only headers not in unredirected
headers will be updated.
2010-09-27 01:26:03 +00:00
Antoine Pitrou
cb15988114 Issue #8445: try to fix some buildbot failures on test_ttk_guionly.
Patch by Guilherme.
2010-09-26 16:36:33 +00:00
Vinay Sajip
4fbe4b340a logging: NullHandler optimisation. 2010-09-26 11:04:10 +00:00
Vinay Sajip
9fdd11b3b6 Issue #9947: logging: Fixed locking bug in stopListening. 2010-09-25 17:48:25 +00:00
Vinay Sajip
32fb6a81f9 Issue #9945: logging: Fixed locking bugs in addHandler/removeHandler. 2010-09-25 17:42:36 +00:00
Alexander Belopolsky
1a0eb98b9c Merged revisions 85000 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85000 | alexander.belopolsky | 2010-09-24 18:04:22 -0400 (Fri, 24 Sep 2010) | 1 line

  This should fix buildbot failure introduced by r84994
........
2010-09-24 22:14:13 +00:00
Alexander Belopolsky
a847c81914 This should fix buildbot failure introduced by r84994 2010-09-24 22:04:22 +00:00
Brian Curtin
82df53e932 Fix a line that got hacked up by r82659. 2010-09-24 21:04:05 +00:00
Antoine Pitrou
a4024e2dd5 Make _kill_process more robust under Windows too (see issue #8432) 2010-09-24 18:57:01 +00:00
Alexander Belopolsky
402392bd5a Merged revisions 84994 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84994 | alexander.belopolsky | 2010-09-24 14:03:12 -0400 (Fri, 24 Sep 2010) | 1 line

  Issue #9936: Fixed executable lines' search in the trace module.
........
2010-09-24 18:08:24 +00:00
Alexander Belopolsky
ff09ce211f Issue #9936: Fixed executable lines' search in the trace module. 2010-09-24 18:03:12 +00:00
Brian Curtin
e8e8042bb5 Fix #9790 again. Rather than handle NotImplementedError at runtime as
before, only attempt the import where nt._getfinalpathname could actually
work, i.e., Windows Vista and beyond.
2010-09-24 13:56:34 +00:00
Brian Curtin
0151b8edda LoginTests fails on a number of buildbots with different errors. Skip
it for now until a buildbot-safe solution comes up.
2010-09-24 13:43:43 +00:00
Hirokazu Yamamoto
a4c8ecd32e Merged revisions 84973 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84973 | hirokazu.yamamoto | 2010-09-24 00:20:15 +0900 | 2 lines

  Issue #9868: locale was left changed after TestEnUSCollation#setUp raised
  TestSkip exception.
........
2010-09-24 09:19:25 +00:00
Brian Curtin
0dac808b3e Fix #9790: Rework the imports necessary for ntpath.samefile and
ntpath.sameopenfile.
2010-09-23 20:38:14 +00:00
Mark Dickinson
a67c70d4a9 Merged revisions 84984 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84984 | mark.dickinson | 2010-09-23 21:11:19 +0100 (Thu, 23 Sep 2010) | 5 lines

  Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r;
  this was causing reversed method calls like float.__radd__(3.0, 1) to
  return NotImplemented instead of the expected numeric value.
........
2010-09-23 20:16:03 +00:00
Antoine Pitrou
605c293031 Further tarfile / test_tarfile cleanup 2010-09-23 20:15:14 +00:00
Mark Dickinson
b09a3d69a6 Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r;
this was causing reversed method calls like float.__radd__(3.0, 1) to
return NotImplemented instead of the expected numeric value.
2010-09-23 20:11:19 +00:00
Brian Curtin
e8e4b3bfd6 #9808. Implement os.getlogin for Windows, completed by Jon Anglin.
The test is semi-dumb, it just makes sure something comes back since we
don't have a solid source to validate the returned login. We can't be 100%
sure that the USERNAME env var will always match what os.getlogin() returns,
so we don't make any specific assertion there.
2010-09-23 20:04:14 +00:00
Antoine Pitrou
ab58b5f90e Try harder to fix test_tarfile under Windows buildbots 2010-09-23 19:39:35 +00:00
Antoine Pitrou
95f5560b46 Try to fix test_tarfile issues on Windows buildbots by closing file
objects explicitly instead of letting them linger on.
2010-09-23 18:36:46 +00:00
Antoine Pitrou
7b9698435d Issue #1675951: Allow GzipFile to work with unseekable file objects.
Patch by Florian Festi.
2010-09-23 16:22:51 +00:00
Hirokazu Yamamoto
dda7fdf194 Skip estLoadWithUNC when UNC is not available. 2010-09-23 15:28:35 +00:00
Hirokazu Yamamoto
b3b390d7b3 Issue #9868: locale was left changed after TestEnUSCollation#setUp raised
TestSkip exception.
2010-09-23 15:20:15 +00:00
Vinay Sajip
0637d493e9 logging: added QueueListener and documentation. 2010-09-23 08:15:54 +00:00
Florent Xicluna
d12a420acc Fix encoding for test case added in r84967. 2010-09-23 00:46:13 +00:00
Florent Xicluna
42d544505f Fix typo and add test case. 2010-09-22 22:35:38 +00:00
Barry Warsaw
31c604d3a7 Issue 9916: Add some missing errno symbols. 2010-09-22 20:58:04 +00:00
Vinay Sajip
0258ce8f0a logging: Added QueueHandler.prepare and updated documentation. 2010-09-22 20:34:53 +00:00
Daniel Stutzbach
c944cfc793 Issue9131: Mark fragile test as CPython-specific 2010-09-21 21:08:09 +00:00