Brian Curtin
9e88b5aeee
Fix #10003 . Add SIGBREAK to the set of valid signals on Windows.
...
This fixes a regression noticed by bzr, introduced by issue #9324 .
2010-10-01 14:49:24 +00:00
Alexander Belopolsky
38e2996152
Issue #6608 : time.asctime is now checking struct tm fields its input
...
before passing it to the system asctime. Patch by MunSic Jeong.
2010-10-01 14:18:49 +00:00
R. David Murray
d2c310f0b7
Fix a couple spelling errors in comments and delete redundant __len__ def.
2010-10-01 02:08:02 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Mark Dickinson
c60371748b
Issue #9599 : Further accuracy tweaks to loghelper. For an integer n that's small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10.
2010-09-29 19:06:36 +00:00
Mark Dickinson
0c0714f954
Add testcases from bug report #9980 .
2010-09-29 18:41:54 +00:00
Victor Stinner
15d597a245
test_imp: getfilesystemencoding() cannot be None anymore
...
And the codec name is normalized.
2010-09-29 16:59:46 +00:00
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
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
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
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
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
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
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
Brian Curtin
0dac808b3e
Fix #9790 : Rework the imports necessary for ntpath.samefile and
...
ntpath.sameopenfile.
2010-09-23 20:38:14 +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
Antoine Pitrou
38425292fb
Issue #9908 : Fix os.stat() on bytes paths under Windows 7.
2010-09-21 18:19:07 +00:00
Alexander Belopolsky
3e62f78c4e
Fixed microsecond rounding in python version of utcfromtimestamp
2010-09-21 16:30:56 +00:00
Antoine Pitrou
b3bfc3d88b
Issue #9899 : Fix test_tkinter.test_font on various platforms. Patch by
...
Ned Deily.
2010-09-21 16:26:09 +00:00